X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Ftext%2Fpretty%2Fprint.c;h=5c18a07d5cd4ad5a155f69fc3f75cfdaac6cb13f;hb=b4a6d40ecb7ec165aa95bfb29eb04e60d21acb79;hp=8474c43c1e2107dcb722ef0863ce43706e66191e;hpb=6e8feb63ad43e7fcd6626ec927aca8832e41b4f0;p=babeltrace.git diff --git a/src/plugins/text/pretty/print.c b/src/plugins/text/pretty/print.c index 8474c43c..5c18a07d 100644 --- a/src/plugins/text/pretty/print.c +++ b/src/plugins/text/pretty/print.c @@ -552,7 +552,8 @@ int print_integer(struct pretty_component *pretty, bt_common_g_string_append(pretty->string, "0b"); _bt_safe_lshift(v.u, 64 - len); for (bitnr = 0; bitnr < len; bitnr++) { - bt_common_g_string_append_printf(pretty->string, "%u", (v.u & (1ULL << 63)) ? 1 : 0); + bt_common_g_string_append_c(pretty->string, + (v.u & (1ULL << 63)) ? '1' : '0'); _bt_safe_lshift(v.u, 1); } break;