update integer text output formatting
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 7 May 2011 05:38:21 +0000 (01:38 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 7 May 2011 05:38:21 +0000 (01:38 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf-text/types/integer.c

index 6abe9b5e55d2c8d8fe335c83497fe5a0f9c6c316..7dcca27e1f364c15417584ff9d0d0d9c6bc841f5 100644 (file)
@@ -33,11 +33,11 @@ void ctf_text_integer_write(struct stream_pos *ppos, struct definition *definiti
                return;
        print_pos_tabs(pos);
        if (!integer_declaration->signedness) {
-               fprintf(pos->fp, "%" PRIu64" (%" PRIX64 ")\n",
+               fprintf(pos->fp, "%" PRIu64" (0x%" PRIX64 ")\n",
                        integer_definition->value._unsigned,
                        integer_definition->value._unsigned);
        } else {
-               fprintf(pos->fp, "%" PRId64" (%" PRIX64 ")\n",
+               fprintf(pos->fp, "%" PRId64" (0x%" PRIX64 ")\n",
                        integer_definition->value._signed,
                        integer_definition->value._signed);
        }
This page took 0.024158 seconds and 4 git commands to generate.