diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-04-16 16:44:31 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-04-16 16:44:31 +0000 |
commit | c4f8808ffca04a117da5ad867a1d2e2c33ea97f1 (patch) | |
tree | 7c0cdb0ef91cfa216484cefd2816c85a6a5cbacb /gnu/usr.bin/gcc | |
parent | c50888b316d7f238d6c028d418de423beea121b8 (diff) |
Tell gcc -Wformat that our kprintf implementation understands %q and %ll
for quads. OK deraadt@, some comments millert@
Diffstat (limited to 'gnu/usr.bin/gcc')
-rw-r--r-- | gnu/usr.bin/gcc/gcc/c-format.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/gcc/gcc/c-format.c b/gnu/usr.bin/gcc/gcc/c-format.c index d778849835a..f21ad2535c5 100644 --- a/gnu/usr.bin/gcc/gcc/c-format.c +++ b/gnu/usr.bin/gcc/gcc/c-format.c @@ -581,7 +581,8 @@ static const format_length_info printf_length_specs[] = static const format_length_info kprintf_length_specs[] = { { "h", FMT_LEN_h, STD_C89, NULL, 0, 0 }, - { "l", FMT_LEN_l, STD_C89, NULL, 0, 0 }, + { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C9L }, + { "q", FMT_LEN_ll, STD_EXT, NULL, 0, 0 }, { "L", FMT_LEN_L, STD_C89, NULL, 0, 0 }, { NULL, 0, 0, NULL, 0, 0 } }; |