from the UEFI shell. It is entirely read-only.\r
\r
Copyright (c) 2014, ARM Limited. All rights reserved.\r
-Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
FsInfoOut = (EFI_FILE_SYSTEM_INFO *) Buffer;\r
\r
CopyMem (FsInfoOut, &mFsInfoTemplate, sizeof (EFI_FILE_SYSTEM_INFO));\r
- Status = StrnCpyS (FsInfoOut->VolumeLabel, (*BufferSize - OFFSET_OF (EFI_FILE_SYSTEM_INFO, VolumeLabel)) / sizeof (CHAR16), Instance->VolumeLabel, StrLen (Instance->VolumeLabel));\r
+ Status = StrnCpyS ( FsInfoOut->VolumeLabel, \r
+ (*BufferSize - OFFSET_OF (EFI_FILE_SYSTEM_INFO, VolumeLabel)) / sizeof (CHAR16), \r
+ Instance->VolumeLabel, \r
+ StrLen (Instance->VolumeLabel)\r
+ );\r
ASSERT_EFI_ERROR (Status);\r
FsInfoOut->Size = Size;\r
return Status;\r
}\r
\r
FsVolumeLabel = (EFI_FILE_SYSTEM_VOLUME_LABEL*) Buffer;\r
- Status = StrnCpyS (FsVolumeLabel->VolumeLabel, (*BufferSize - OFFSET_OF (EFI_FILE_SYSTEM_VOLUME_LABEL, VolumeLabel)) / sizeof (CHAR16), Instance->VolumeLabel, StrLen (Instance->VolumeLabel));\r
+ Status = StrnCpyS (FsVolumeLabel->VolumeLabel, \r
+ (*BufferSize - OFFSET_OF (EFI_FILE_SYSTEM_VOLUME_LABEL, VolumeLabel)) / sizeof (CHAR16),\r
+ Instance->VolumeLabel, \r
+ StrLen (Instance->VolumeLabel)\r
+ );\r
ASSERT_EFI_ERROR (Status);\r
return Status;\r
} else {\r