diff options
author | Thomas Graf <tgraf@suug.ch> | 2015-06-30 11:59:48 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2015-06-30 11:59:48 +0200 |
commit | 21ec49ed67229fc6b0983c1c5fea876071d0ad20 (patch) | |
tree | a6b28c631ac7fe11577e68a09f2acd2760256b2b /src | |
parent | 29172c819cd10901f1b17b633b4ade49fcc55306 (diff) |
format: Don't print error message for unavailable attributes
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'src')
-rw-r--r-- | src/out_format.c | 5 |
1 files changed, 1 insertions, 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); |