summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2015-06-30 11:59:48 +0200
committerThomas Graf <tgraf@suug.ch>2015-06-30 11:59:48 +0200
commit21ec49ed67229fc6b0983c1c5fea876071d0ad20 (patch)
treea6b28c631ac7fe11577e68a09f2acd2760256b2b
parent29172c819cd10901f1b17b633b4ade49fcc55306 (diff)
format: Don't print error message for unavailable attributes
Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--src/out_format.c5
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);