chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils/t/exc-test.c: Print null pointers in a consistent way.
[mLib]
/
utils
/
t
/
exc-test.c
diff --git
a/utils/t/exc-test.c
b/utils/t/exc-test.c
index ba74b949ebec62ace0d85d72bc169d3faa4d0807..89701bfd223b66580e69901bf450fa38aa61acd7 100644
(file)
--- a/
utils/t/exc-test.c
+++ b/
utils/t/exc-test.c
@@
-35,7
+35,10
@@
int main(void)
printf("%lu exception (val = %i)\n", exc_type, exc_i);
break;
} END_TRY;
printf("%lu exception (val = %i)\n", exc_type, exc_i);
break;
} END_TRY;
- printf("hello! __exc_list = %p\n", (void *)__exc_list);
+ printf("hello! __exc_list = ");
+ if (__exc_list) printf("%p", (void *)__exc_list);
+ else printf("(nil)");
+ putchar('\n');
return (0);
}
return (0);
}