diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 1999-08-27 10:02:56 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 1999-08-27 10:02:56 +0000 |
commit | 35edbffe27d0482c7adfc659c81184432aa16cfa (patch) | |
tree | cf0c3faa9ed0c9f3e221f6707d0e9bf05ad2e323 /contrib | |
parent | 1fc70153e999d9033841dc6dcfd962fbf9d323ba (diff) | |
download | src-35edbffe27d0482c7adfc659c81184432aa16cfa.tar.gz src-35edbffe27d0482c7adfc659c81184432aa16cfa.zip |
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
Notes
Notes:
svn path=/head/; revision=50450
Diffstat (limited to 'contrib')
-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 59543bc5c456..5e5b712428b9 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#" }, |