From 40d841f6a8f84e75409178e19e69b95e01bada0f Mon Sep 17 00:00:00 2001 From: lgao4 Date: Tue, 18 May 2010 05:04:32 +0000 Subject: Sync EDKII BaseTools to BaseTools project r1971 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10502 6f19259b-4bc3-4df7-8a09-765794883524 --- BaseTools/Source/C/VolInfo/GNUmakefile | 4 ++-- BaseTools/Source/C/VolInfo/Makefile | 4 ++-- BaseTools/Source/C/VolInfo/VolInfo.c | 21 ++++++++++++++------- BaseTools/Source/C/VolInfo/VolInfo.h | 4 ++-- 4 files changed, 20 insertions(+), 13 deletions(-) (limited to 'BaseTools/Source/C/VolInfo') diff --git a/BaseTools/Source/C/VolInfo/GNUmakefile b/BaseTools/Source/C/VolInfo/GNUmakefile index c80c55513b..d5594d07a0 100644 --- a/BaseTools/Source/C/VolInfo/GNUmakefile +++ b/BaseTools/Source/C/VolInfo/GNUmakefile @@ -1,8 +1,8 @@ ## @file # Windows makefile for 'VolInfo' module build. # -# Copyright (c) 2007 - 2010, Intel Corporation
-# All rights reserved. This program and the accompanying materials +# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.
+# This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at # http://opensource.org/licenses/bsd-license.php diff --git a/BaseTools/Source/C/VolInfo/Makefile b/BaseTools/Source/C/VolInfo/Makefile index e110e8914b..4cee93a869 100644 --- a/BaseTools/Source/C/VolInfo/Makefile +++ b/BaseTools/Source/C/VolInfo/Makefile @@ -1,8 +1,8 @@ ## @file # Windows makefile for 'VolInfo' module build. # -# Copyright (c) 2007 - 2010, Intel Corporation
-# All rights reserved. This program and the accompanying materials +# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.
+# This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at # http://opensource.org/licenses/bsd-license.php diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolInfo/VolInfo.c index 60a443cced..70d4589e80 100644 --- a/BaseTools/Source/C/VolInfo/VolInfo.c +++ b/BaseTools/Source/C/VolInfo/VolInfo.c @@ -1,7 +1,7 @@ /** @file -Copyright (c) 1999 - 2010, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 1999 - 2010, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -123,7 +123,8 @@ PrintFileInfo ( static EFI_STATUS PrintFvInfo ( - IN VOID *Fv + IN VOID *Fv, + IN BOOLEAN IsChildFv ); static @@ -291,7 +292,7 @@ Returns: LoadGuidedSectionToolsTxt (argv[0]); - PrintFvInfo (FvImage); + PrintFvInfo (FvImage, FALSE); // // Clean up @@ -305,7 +306,8 @@ Returns: static EFI_STATUS PrintFvInfo ( - IN VOID *Fv + IN VOID *Fv, + IN BOOLEAN IsChildFv ) /*++ @@ -316,6 +318,7 @@ Routine Description: Arguments: Fv - Firmware Volume to print information about + IsChildFv - Flag specifies whether the input FV is a child FV. Returns: @@ -375,7 +378,11 @@ Returns: } } - printf ("There are a total of %d files in this FV\n", (int) NumberOfFiles); + if (IsChildFv) { + printf ("There are a total of %d files in the child FV\n", (int) NumberOfFiles); + } else { + printf ("There are a total of %d files in this FV\n", (int) NumberOfFiles); + } return EFI_SUCCESS; } @@ -1275,7 +1282,7 @@ Returns: break; case EFI_SECTION_FIRMWARE_VOLUME_IMAGE: - Status = PrintFvInfo (((EFI_FIRMWARE_VOLUME_IMAGE_SECTION*)Ptr) + 1); + Status = PrintFvInfo (((EFI_FIRMWARE_VOLUME_IMAGE_SECTION*)Ptr) + 1, TRUE); if (EFI_ERROR (Status)) { Error (NULL, 0, 0003, "printing of FV section contents failed", NULL); return EFI_SECTION_ERROR; diff --git a/BaseTools/Source/C/VolInfo/VolInfo.h b/BaseTools/Source/C/VolInfo/VolInfo.h index 2bee33ad1e..c2831293ba 100644 --- a/BaseTools/Source/C/VolInfo/VolInfo.h +++ b/BaseTools/Source/C/VolInfo/VolInfo.h @@ -1,7 +1,7 @@ /** @file -Copyright (c) 1999 - 2008, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 1999 - 2008, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php -- cgit v1.2.3