summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd/zdb/zdb_il.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/zdb/zdb_il.c b/cmd/zdb/zdb_il.c
index 257aa6f4b..bc167cee6 100644
--- a/cmd/zdb/zdb_il.c
+++ b/cmd/zdb/zdb_il.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ * Copyright (c) 2012 Cyril Plisko. All rights reserved.
* Use is subject to license terms.
*/
@@ -172,7 +173,7 @@ zil_prt_rec_write(zilog_t *zilog, int txtype, lr_write_t *lr)
if (isprint(*data))
(void) printf("%c ", *data);
else
- (void) printf("%2X", *data);
+ (void) printf("%2hhX", *data);
data++;
}
(void) printf("\n");