Commit b61aa691 authored by Alessandro Rubini's avatar Alessandro Rubini

userspace: bugfix in wrs_dump_shmem

Dump of unknown memory regions was wrong in the "ascii" column.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 9ef6d7b6
......@@ -172,7 +172,7 @@ int dump_any_mem(struct wrs_shm_head *head)
if (i % 16 == 15) { /* ascii row */
printf(" ");
for (j = i & ~15; j <= i; j++)
printf("%c", p[j] >= 0x20 && p[j] > 0x7f
printf("%c", p[j] >= 0x20 && p[j] < 0x7f
? p[j] : '.');
printf("\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment