From 21ec49ed67229fc6b0983c1c5fea876071d0ad20 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Tue, 30 Jun 2015 11:59:48 +0200 Subject: format: Don't print error message for unavailable attributes Signed-off-by: Thomas Graf --- src/out_format.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/out_format.c b/src/out_format.c index 1cabf9d..ab07408 100644 --- a/src/out_format.c +++ b/src/out_format.c @@ -119,11 +119,8 @@ static char *get_token(struct element_group *g, struct element *e, goto out; } - if (!(a = attr_lookup(e, def->ad_id))) { - fprintf(stderr, "Unable to find attribute %u (%s)\n", - def->ad_id, name); + if (!(a = attr_lookup(e, def->ad_id))) goto out; - } if (!strncasecmp(type, "rx:", 3)) { snprintf(buf, len, "%" PRIu64, a->a_rx_rate.r_total); -- cgit v1.2.3