From: William A. Rowe Jr Date: Fri, 29 Jul 2016 15:24:39 +0000 (+0000) Subject: Improve legibility of reviewing the generated table, using hex rather than dec X-Git-Tag: 2.5.0-alpha~1365 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3be6c9bf67964c5c7e8220d49e48ac3bba4727a;p=apache Improve legibility of reviewing the generated table, using hex rather than dec git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1754536 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/gen_test_char.c b/server/gen_test_char.c index e25238f31b..d5b8d3f345 100644 --- a/server/gen_test_char.c +++ b/server/gen_test_char.c @@ -79,7 +79,7 @@ int main(int argc, char *argv[]) for (c = 0; c < 256; ++c) { flags = 0; - if (c % 20 == 0) + if (c % 8 == 0) printf("\n "); /* escape_shell_cmd */ @@ -137,7 +137,7 @@ int main(int argc, char *argv[]) flags |= T_ESCAPE_FORENSIC; } - printf("%u%c", flags, (c < 255) ? ',' : ' '); + printf("0x%02x%c", flags, (c < 255) ? ',' : ' '); } printf("\n};\n");