diff --git a/src/com/wentch/redkale/util/Utility.java b/src/com/wentch/redkale/util/Utility.java index a75d7017e..a9af4857f 100644 --- a/src/com/wentch/redkale/util/Utility.java +++ b/src/com/wentch/redkale/util/Utility.java @@ -81,7 +81,9 @@ public final class Utility { sb.append('['); for (byte b : bytes) { if (sb.length() > 1) sb.append(','); - sb.append(Integer.toHexString(b & 0xff)); + int v = b & 0xff; + if (v < 10) sb.append('0'); + sb.append(Integer.toHexString(v)); } sb.append(']'); (System.out).println(sb);