diskio: convert print functions to match common signature
[monky] / src / smapi.c
index cb6758f..aa2ea2f 100644 (file)
@@ -1,4 +1,5 @@
 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
+ * vim: ts=4 sw=4 noet ai cindent syntax=c
  *
  * smapi.c:  conky support for IBM Thinkpad smapi
  *
@@ -19,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
  * USA.
  *
- * vim: ts=4 sw=4 noet ai cindent syntax=c
- *
  */
 #define _GNU_SOURCE
 #include "conky.h"     /* text_buffer_size, PACKAGE_NAME, maybe more */
@@ -103,7 +102,7 @@ char *smapi_get_bat_val(const char *args)
 
        if(sscanf(args, "%i %n", &idx, &cnt) <= 0 ||
           snprintf(fname, 127, "%s", (args + cnt)) < 0) {
-               ERR("smapi: wrong arguments, should be 'bat,<int>,<str>'");
+               NORM_ERR("smapi: wrong arguments, should be 'bat,<int>,<str>'");
                return NULL;
        }