From 1c8ebda697f3c4c678bff63997d98ade4d8492f4 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 25 May 2008 20:03:05 +0000 Subject: [PATCH] remove printf when the sensor has no statistics; requested by xtraeme. --- usr.sbin/envstat/envstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/envstat/envstat.c b/usr.sbin/envstat/envstat.c index 75e6c848ba62..ecd8f236af68 100644 --- a/usr.sbin/envstat/envstat.c +++ b/usr.sbin/envstat/envstat.c @@ -1,4 +1,4 @@ -/* $NetBSD: envstat.c,v 1.67 2008/05/24 15:55:13 christos Exp $ */ +/* $NetBSD: envstat.c,v 1.68 2008/05/25 20:03:05 christos Exp $ */ /*- * Copyright (c) 2007, 2008 Juan Romero Pardines. @@ -27,7 +27,7 @@ #include #ifndef lint -__RCSID("$NetBSD: envstat.c,v 1.67 2008/05/24 15:55:13 christos Exp $"); +__RCSID("$NetBSD: envstat.c,v 1.68 2008/05/25 20:03:05 christos Exp $"); #endif /* not lint */ #include @@ -765,7 +765,7 @@ print_sensors(void) if (statistics) { stats = find_stats_sensor(sensor->desc, false); if (stats == NULL) { - (void)printf(": No statistics\n"); + /* No statistics for this sensor */ continue; } }