From 5cfcd844477f7fafb290841d3262a2b5a87c76ba Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 24 Mar 2012 20:19:06 +0000 Subject: Left-pad the eeprom dump with zeroes in the debug dump to make it easier to read (this code is not compiled unless option AHC_DUMP_EEPROM anyway) --- sys/dev/ic/smc93cx6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/ic/smc93cx6.c b/sys/dev/ic/smc93cx6.c index 026eb0c5b0d..0a4a3fe5623 100644 --- a/sys/dev/ic/smc93cx6.c +++ b/sys/dev/ic/smc93cx6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smc93cx6.c,v 1.17 2003/09/25 06:43:34 fgsch Exp $ */ +/* $OpenBSD: smc93cx6.c,v 1.18 2012/03/24 20:19:05 miod Exp $ */ /* $NetBSD: smc93cx6.c,v 1.10 2003/05/02 19:12:19 dyoung Exp $ */ /* @@ -173,7 +173,7 @@ read_seeprom(sd, buf, start_addr, count) if (((k % 8) == 0) && (k != 0)) { printf ("\n\t"); } - printf (" 0x%x", buf[k]); + printf (" 0x%04x", buf[k]); } printf ("\n"); #endif -- cgit v1.2.3