Use 0b prefix for binary pretty print
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 14 May 2011 00:32:22 +0000 (20:32 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 14 May 2011 00:32:22 +0000 (20:32 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf-text/types/integer.c

index 34a899ddd0e901dab98141133f71c1c2526e92c2..3d1c459fd91b9259949526200e469b75d273c206 100644 (file)
@@ -61,7 +61,7 @@ int ctf_text_integer_write(struct stream_pos *ppos, struct definition *definitio
                else
                        v = (uint64_t) integer_definition->value._signed;
 
-               fprintf(pos->fp, "b");
+               fprintf(pos->fp, "0b");
                v = _bt_piecewise_lshift(v, 64 - integer_declaration->len);
                for (bitnr = 0; bitnr < integer_declaration->len; bitnr++) {
                        fprintf(pos->fp, "%u", (v & (1ULL << 63)) ? 1 : 0);
This page took 0.023597 seconds and 4 git commands to generate.