diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-03-24 20:19:06 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-03-24 20:19:06 +0000 |
commit | 5cfcd844477f7fafb290841d3262a2b5a87c76ba (patch) | |
tree | f4c3f8c6786177e0f02f3f86aceb1907b5706fff | |
parent | 79510dbce6ddaceef1659a9bbbcf52defe066370 (diff) |
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)
-rw-r--r-- | sys/dev/ic/smc93cx6.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |