You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2016/07/29 15:24:39 UTC

svn commit: r1754536 - /httpd/httpd/trunk/server/gen_test_char.c

Author: wrowe
Date: Fri Jul 29 15:24:39 2016
New Revision: 1754536

URL: http://svn.apache.org/viewvc?rev=1754536&view=rev
Log:
Improve legibility of reviewing the generated table, using hex rather than dec

Modified:
    httpd/httpd/trunk/server/gen_test_char.c

Modified: httpd/httpd/trunk/server/gen_test_char.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/gen_test_char.c?rev=1754536&r1=1754535&r2=1754536&view=diff
==============================================================================
--- httpd/httpd/trunk/server/gen_test_char.c (original)
+++ httpd/httpd/trunk/server/gen_test_char.c Fri Jul 29 15:24:39 2016
@@ -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");