]> granicus.if.org Git - apache/commitdiff
Improve legibility of reviewing the generated table, using hex rather than dec
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 29 Jul 2016 15:24:39 +0000 (15:24 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 29 Jul 2016 15:24:39 +0000 (15:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1754536 13f79535-47bb-0310-9956-ffa450edef68

server/gen_test_char.c

index e25238f31b2f20261708a271f55b218a7cb10292..d5b8d3f34503a6adc6204c18140effeab0572cfe 100644 (file)
@@ -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");