# HG changeset patch # User Mychaela Falconia # Date 1569101109 0 # Node ID 99f72069d8670a1122ce8aa01b9816dd8d2f6434 # Parent ff2a6433687f511b8ab81ae6dfb57cea35f2a16e blobstat: actually works now diff -r ff2a6433687f -r 99f72069d867 blobstat/grokmap.c --- a/blobstat/grokmap.c Sat Sep 21 21:17:29 2019 +0000 +++ b/blobstat/grokmap.c Sat Sep 21 21:25:09 2019 +0000 @@ -95,7 +95,7 @@ *cp++ = '\0'; strcpy(libnameout, linebuf + 43); cp += 2; - if (!isalpha(*cp)) + if (!isalnum(*cp) && *cp != '_') goto inv_input_sec_line; *memberout = cp; while (isalnum(*cp) || *cp == '_' || *cp == '.') @@ -112,7 +112,7 @@ goto inv_input_sec_line; if (*cp++ != ' ') goto inv_input_sec_line; - if (!isalpha(*cp)) + if (!isalnum(*cp) && *cp != '_') goto inv_input_sec_line; *memberout = cp; while (isalnum(*cp) || *cp == '_' || *cp == '.') diff -r ff2a6433687f -r 99f72069d867 blobstat/output.c --- a/blobstat/output.c Sat Sep 21 21:17:29 2019 +0000 +++ b/blobstat/output.c Sat Sep 21 21:25:09 2019 +0000 @@ -14,7 +14,7 @@ total += p->accum; printf("total: 0x%lX (%lu) bytes\n", total, total); for (p = category_list; p; p = p->next) - printf("%s: 0x%lX (%lu) bytes, %u%% of total\n", p->accum, - p->accum, p->accum * 100 / total); + printf("%s: 0x%lX (%lu) bytes, %lu%% of total\n", p->name, + p->accum, p->accum, p->accum * 100 / total); return(0); }