Fix: printing [no write] on lttng list -uf
authorDavid Goulet <dgoulet@efficios.com>
Mon, 24 Sep 2012 17:14:01 +0000 (13:14 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 24 Sep 2012 17:14:01 +0000 (13:14 -0400)
The print message was using the wrong condition to print [no write].

Fixes #345

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/list.c

index 0467cc6ba32d6afc828bcaeec34e31c0b58ed416..696e80e7f2c9a8bfd3e54de5c4caba0024e68b84 100644 (file)
@@ -281,7 +281,7 @@ static void print_event_field(struct lttng_event_field *field)
                return;
        }
        MSG("%sfield: %s (%s)%s", indent8, field->field_name,
-               field_type(field), field->nowrite ? "" : " [no write]");
+               field_type(field), field->nowrite ? " [no write]" : "");
 }
 
 /*
This page took 0.026631 seconds and 4 git commands to generate.