diff options
author | obrien <obrien@FreeBSD.org> | 1999-08-27 10:02:56 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-08-27 10:02:56 +0000 |
commit | a774007e84fd58a2abdd7a9d186f05144e2abe24 (patch) | |
tree | 426a0a31a3e2f25b7b0228f24aabbc15820ed791 | |
parent | 2f0dd791ee74acba70ef600a569355b74b999aba (diff) | |
download | FreeBSD-src-a774007e84fd58a2abdd7a9d186f05144e2abe24.zip FreeBSD-src-a774007e84fd58a2abdd7a9d186f05144e2abe24.tar.gz |
Fixed kernel format checking:
- plain %r and %z were disallowed. The hard NULs in the warnings were
hopefully caused by disallowing of plain formats being nonsense.
- new formats for shortening to a byte were allowed, but even the libc
printf doesn't support them.
- old %hr and %hz formats were allowed, but the kernel printf doesn't
support them. The kernel doesn't support %hd either, but this is
harder to fix.
Submitted by: bde
-rw-r--r-- | contrib/gcc/c-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/gcc/c-common.c b/contrib/gcc/c-common.c index 59543bc..5e5b712 100644 --- a/contrib/gcc/c-common.c +++ b/contrib/gcc/c-common.c @@ -1027,9 +1027,9 @@ typedef struct { static format_char_info print_char_table[] = { /* FreeBSD kernel extensions. */ - { "D", 1, T_C, T_C, NULL, NULL, NULL, NULL, NULL, "-wp" }, - { "b", 1, T_C, T_C, NULL, NULL, NULL, NULL, NULL, "-wp" }, - { "rz", 0, NULL, T_I, T_I, T_L, NULL, NULL, NULL, "-wp0 +#" }, + { "D", 1, T_C, NULL, NULL, NULL, NULL, NULL, NULL, "-wp" }, + { "b", 1, T_C, NULL, NULL, NULL, NULL, NULL, NULL, "-wp" }, + { "rz", 0, T_I, NULL, NULL, T_L, NULL, NULL, NULL, "-wp0 +#" }, #define unextended_print_char_table (print_char_table + 3) { "di", 0, T_I, T_I, T_I, T_L, T_LL, T_LL, T_ST, "-wp0 +" }, { "oxX", 0, T_UI, T_UI, T_UI, T_UL, T_ULL, T_ULL, T_ST, "-wp0#" }, |