diff options
author | Dr. David Alan Gilbert <david.gilbert@linaro.org> | 2011-05-24 23:39:47 +0200 |
---|---|---|
committer | Jiri Olsa <Jiri Olsa jolsa@redhat.com> | 2011-05-25 12:45:30 +0200 |
commit | 56798f25922db3299e11418e9114329006a498ab (patch) | |
tree | 8f7831281dcae9abfd8db953a922cd98a272a1e3 /src | |
parent | d0d232d7b97ea8962f64fc2126d764009048a090 (diff) | |
download | latrace-56798f25922db3299e11418e9114329006a498ab.tar.gz latrace-56798f25922db3299e11418e9114329006a498ab.tar.xz latrace-56798f25922db3299e11418e9114329006a498ab.zip |
args - use isprint to decide whether to print the character
+ force test.sh to use bash
+ fix test_char tests
contributed by Dr. David Alan Gilbert <david.gilbert@linaro.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/args.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -19,6 +19,7 @@ */ +#include <ctype.h> #include <stdlib.h> #include <string.h> #include <search.h> @@ -850,7 +851,7 @@ do { \ len = snprintf(argbuf, alen, "NULL"); } else { - if (*((char*) pval) <= ' ') + if (!isprint(*((char*) pval))) len = snprintf(argbuf, alen, "0x%02x", *((unsigned char*) pval)); else |