From 7798fdc99fc5f16a8a1f3f94bb2428908634d5a6 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 16 Jun 2014 21:01:11 -0700 Subject: pxelinux-options: Fix data corruption bug Fix bug where the data would invariably be incorrectly written. Signed-off-by: H. Peter Anvin --- utils/pxelinux-options | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/pxelinux-options b/utils/pxelinux-options index dfd98cf1..073eee57 100755 --- a/utils/pxelinux-options +++ b/utils/pxelinux-options @@ -226,8 +226,6 @@ sub read_optsets($) return undef unless (read($file, $data, 16) == 16); ($blen, $alen, $bufsize, $junk) = unpack("VVVV", $data); - printf STDERR "EFI: offset = 0x%x, blen = %d, alen = %d, bufsize = %d\n", $hdroffset, $blen, $alen, $bufsize; - $patch_start = $boff = $hdroffset + 32; $aoff = $boff + $blen; @@ -264,7 +262,7 @@ sub read_optsets($) return (\%hdr, $bdata, $adata); } -sub write_optsets($$$@) +sub write_optsets($$@) { my($file, $hdr, $bdata, $adata) = @_; my $boff = 0; -- cgit v1.2.1