diff --git a/klogd.c b/klogd.c index be5e769..6cc80ed 100644 --- a/klogd.c +++ b/klogd.c @@ -899,7 +899,7 @@ static void LogLine(char *ptr, int len) break; } - delta = sprintf( sym_start, "%s+%d/%d]", + delta = sprintf( sym_start, "%s+0x%x/0x%02x]", symbol, sym.offset, sym.size ); space = sym_space + delta; diff --git a/ksym.c b/ksym.c index 3bec57f..639bbb7 100644 --- a/ksym.c +++ b/ksym.c @@ -845,7 +845,7 @@ extern char * ExpandKadds(line, el) { --value; ++kp; - elp += sprintf(elp, "+%x/%d", sym.offset, sym.size); + elp += sprintf(elp, "+0x%x/0x%02x", sym.offset, sym.size); } strncat(elp, kp, value); elp += value;