summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/apcb/apcb_edit.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/apcb/apcb_edit.py b/util/apcb/apcb_edit.py
index e5dd0cd586..54d59d6fcc 100755
--- a/util/apcb/apcb_edit.py
+++ b/util/apcb/apcb_edit.py
@@ -99,7 +99,7 @@ def inject(orig, insert, offset):
def main():
args = parseargs()
- print("Reading input APCB from %s\n" % (args.apcb_in.name))
+ print("Reading input APCB from %s" % (args.apcb_in.name))
apcb = args.apcb_in.read()
@@ -107,10 +107,10 @@ def main():
gpio_offset = apcb.find(GPIO_MAGIC)
assert gpio_offset > 0, "GPIO magic number not found"
- print('GPIO magic number found at offset 0x%x\n' % gpio_offset)
+ print('GPIO magic number found at offset 0x%x' % gpio_offset)
gpio_array = (args.board_id_gpio0 + args.board_id_gpio1 +
args.board_id_gpio2 + args.board_id_gpio3)
- print('Writing SPD GPIO array %s\n' % gpio_array)
+ print('Writing SPD GPIO array %s' % gpio_array)
apcb = inject(apcb, pack('BBBBBBBBBBBB', *gpio_array), gpio_offset)
spd_offset = 0
@@ -130,7 +130,7 @@ def main():
"Unexpected channel number found in APCB"
print("Found SPD magic number with channel %d and dimm %d "
- "at offset 0x%x\n" % (spd_ssp.ChannelNumber, spd_ssp.DimmNumber,
+ "at offset 0x%x" % (spd_ssp.ChannelNumber, spd_ssp.DimmNumber,
spd_offset))
dimm_channel = (spd_ssp.ChannelNumber, spd_ssp.DimmNumber)
@@ -155,12 +155,12 @@ def main():
assert len(spd) == 512, \
"Expected SPD to be 512 bytes, got %d" % len(spd)
- print("Enabling channel %d, dimm %d and injecting SPD\n" %
+ print("Enabling channel %d, dimm %d and injecting SPD" %
(spd_ssp.ChannelNumber, spd_ssp.DimmNumber))
spd_ssp = spd_ssp._replace(SpdValid=True, DimmPresent=True)
else:
- print("Disabling channel %d, dimm %d and clearing SPD\n" %
+ print("Disabling channel %d, dimm %d and clearing SPD" %
(spd_ssp.ChannelNumber, spd_ssp.DimmNumber))
spd_ssp = spd_ssp._replace(SpdValid=False, DimmPresent=False)
spd = EMPTY_SPD
@@ -170,7 +170,7 @@ def main():
spd_offset += 512
- print("Fixing checksum and writing to %s\n" % (args.apcb_out.name))
+ print("Fixing checksum and writing to %s" % (args.apcb_out.name))
apcb = inject(apcb, bytes([chksum(apcb)]), 16)