From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by mx.groups.io with SMTP id smtpd.web10.42390.1658245554181876160 for ; Tue, 19 Jul 2022 08:45:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BoxGRfr/; spf=pass (domain: gmail.com, ip: 209.85.167.53, mailfrom: aladyshev22@gmail.com) Received: by mail-lf1-f53.google.com with SMTP id bf9so25454887lfb.13 for ; Tue, 19 Jul 2022 08:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X/mTvIaZbLvt6PHRJc9IkGSiZmMVtpK+IghK9ebkkE8=; b=BoxGRfr/s/l8+/0+Cg6UIvRTjl0m/GFsEoKwRUJPAYpenUc3KeetB/eoIUFGPMCpAt I0UT1v0SwJ8vL4oF8tNPSvrx82eAaB6/1muTlN8m4/FlQkeM/Q/WJUGgL8RLtH6EjFGY onssQsm+mzG+PM/bH71xZvmFh69X7TofVLkjkawGDOK1D/Z8gL2fCiSfcT/S8fuL7AAS ClBKuraSZv8fVnPNJsSTB1Rf8A+CVvIuvPKYsoVurSxqXUE4nLhOVTBdFRWpdgm0Sqc1 9mYzv0BR8cVry7oAolIBZWQUAINebbhLjUtrHC7rGjzYSaISW8CMspRLauLMJcbnjVGW kHJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X/mTvIaZbLvt6PHRJc9IkGSiZmMVtpK+IghK9ebkkE8=; b=jAeQfg0miPxooSxyWLyhqHhVs2N+RDgWQxAqAyhDv68Uy0qsSsGQpmnvDZvPWU/0Vg W6Z525J/67VH6XJ6DNlzHH8XsQGQVp+FjjRq5ZucvqQDmDNG4jU7RQVibZa4G7STRPIG sGnplgwiWf0sahcwcTsLoEEkWrMJxEE/jRhH9a8GanzkAezo1geWSHOEGX10WtWrCUEz uBRuNz/63cTDD07qWIxekbQVnJzt7HTynqoNeX2Pw9qC1pW6dX4yPgFRfsmmwYqgMwSy tAiQDvRzJPebR2m414Jc2uxqUJfBHQ11fah2vhCGsjhOneqP4HBQzSP9uwrMEgBPX1KY rq+Q== X-Gm-Message-State: AJIora9OAys/i6joHnMUT+7kX7eym9OkpMPAVgYjhU9rS6fe68unuGPY OnJykbggtXWTqJ6YQ9q6YBNqsZkiugIc/uXB X-Google-Smtp-Source: AGRyM1tgh2j0g2gWB/wN7EVelNIb/Q9kXdJgPmjoZo3vS2j/d853kbYeMVvVgBAfIVTzi8PCUctiAg== X-Received: by 2002:a05:6512:2527:b0:48a:3175:d647 with SMTP id be39-20020a056512252700b0048a3175d647mr9195392lfb.326.1658245552209; Tue, 19 Jul 2022 08:45:52 -0700 (PDT) Return-Path: Received: from PC10319.67 ([82.97.198.254]) by smtp.googlemail.com with ESMTPSA id h19-20020a2e9ed3000000b0025d4d4b4edbsm2733706ljk.34.2022.07.19.08.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 08:45:51 -0700 (PDT) From: "Konstantin Aladyshev" To: devel@edk2.groups.io Cc: bob.c.feng@intel.com, gaoliming@byosoft.com.cn, yuwei.chen@intel.com, Konstantin Aladyshev Subject: [PATCH] BaseTools/VolInfo: Show FV section boundaries Date: Tue, 19 Jul 2022 18:45:52 +0300 Message-Id: <20220719154552.12790-1-aladyshev22@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Currently there is no labels for start and end of the EFI_SECTION_FIRMWARE_VOLUME_IMAGE type section. Therefore it is not possible to see where the FV section ends and another section starts. Add labels for start and end of the FV sections to fix the issue. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolI= nfo/VolInfo.c index 47a8f80f46..a78a7e7976 100644 --- a/BaseTools/Source/C/VolInfo/VolInfo.c +++ b/BaseTools/Source/C/VolInfo/VolInfo.c @@ -1796,11 +1796,13 @@ Returns: break;=0D =0D case EFI_SECTION_FIRMWARE_VOLUME_IMAGE:=0D + printf ("/------------ Firmware Volume section start ---------------= \\\n");=0D Status =3D PrintFvInfo (Ptr + SectionHeaderLen, TRUE);=0D if (EFI_ERROR (Status)) {=0D Error (NULL, 0, 0003, "printing of FV section contents failed", NU= LL);=0D return EFI_SECTION_ERROR;=0D }=0D + printf ("\\------------ Firmware Volume section end ----------------= -/\n");=0D break;=0D =0D case EFI_SECTION_COMPATIBILITY16:=0D --=20 2.25.1