summaryrefslogtreecommitdiff
path: root/lib/read_data.c
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2004-12-23 21:50:41 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2004-12-23 21:50:41 +0000
commitce9ce223ca75ad10aa495036137542e8f2cf89b7 (patch)
treea8ec3c167001aa9ac4e2ad2da4ac28c5c02c6473 /lib/read_data.c
parent71900c0e306fc733e9de6c8bf702fda9ae9be154 (diff)
downloadlibgtop-ce9ce223ca75ad10aa495036137542e8f2cf89b7.tar.gz
Turned all macros to functions. Marked everything as G_GNUC_PRINTF and
* include/glibtop/error.h: * lib/parameter.c: (glibtop_set_parameter_l): * lib/read_data.c: (glibtop_read_data_l): * sysdeps/common/error.c: (print_server_name), (glibtop_error_vr), (glibtop_error_io_vr), (glibtop_warn_vr), (glibtop_warn_io_vr), (glibtop_error_r), (glibtop_warn_r), (glibtop_error_io_r), (glibtop_warn_io_r), (glibtop_error), (glibtop_warn), (glibtop_error_io), (glibtop_warn_io): Turned all macros to functions. Marked everything as G_GNUC_PRINTF and fixed format bugs. * sysdeps/common/fsusage.c: Marked some functions as G_GNUC_INTERNAL
Diffstat (limited to 'lib/read_data.c')
-rw-r--r--lib/read_data.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/read_data.c b/lib/read_data.c
index 6944552b..5d5d8dcf 100644
--- a/lib/read_data.c
+++ b/lib/read_data.c
@@ -38,7 +38,8 @@ glibtop_read_data_l (glibtop *server)
glibtop_init_r (&server, 0, 0);
#ifdef DEBUG
- fprintf (stderr, "LIBRARY: reading %d data bytes.\n", sizeof (size_t));
+ fprintf (stderr, "LIBRARY: reading %lu data bytes.\n",
+ (unsigned long) sizeof (size_t));
#endif
if (server->socket) {
@@ -51,7 +52,8 @@ glibtop_read_data_l (glibtop *server)
glibtop_error_io_r (server, _("read data size"));
#ifdef DEBUG
- fprintf (stderr, "LIBRARY: really reading %d data bytes (ret = %d).\n", size, ret);
+ fprintf (stderr, "LIBRARY: really reading %lu data bytes (ret = %d).\n",
+ (unsigned long) size, ret);
#endif
if (!size) return NULL;
@@ -65,7 +67,9 @@ glibtop_read_data_l (glibtop *server)
}
if (ret < 0)
- glibtop_error_io_r (server, ngettext ("read data %d byte", "read data %d bytes", size));
+ glibtop_error_io_r (server,
+ ngettext ("read data %lu byte", "read data %lu bytes",
+ (unsigned long) size));
return ptr;
}