summaryrefslogtreecommitdiffstats
path: root/skdump.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-07-01 13:44:56 +0200
committerLennart Poettering <lennart@poettering.net>2008-07-01 13:44:56 +0200
commitcde75bd31b5493f5f912331a88061d30a34cd746 (patch)
tree20e02d51ea90822c8d6252357152401db24a3dc4 /skdump.c
parentf8ab64249186f05685a47eac85593dce8c5d691d (diff)
don't depend on glib anymore, we don't really use any of its features anyway
Diffstat (limited to 'skdump.c')
-rw-r--r--skdump.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/skdump.c b/skdump.c
index aeec716..93bf18f 100644
--- a/skdump.c
+++ b/skdump.c
@@ -20,6 +20,7 @@
<http://www.gnu.org/licenses/>.
***/
+#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -31,19 +32,19 @@ int main(int argc, char *argv[]) {
SkDisk *d;
if (argc != 2) {
- g_printerr("%s [DEVICE]\n", argv[0]);
+ fprintf(stderr, "%s [DEVICE]\n", argv[0]);
return 1;
}
device = argv[1];
if ((ret = sk_disk_open(device, &d)) < 0) {
- g_printerr("Failed to open disk %s: %s\n", device, g_strerror(errno));
+ fprintf(stderr, "Failed to open disk %s: %s\n", device, strerror(errno));
return 1;
}
if ((ret = sk_disk_dump(d)) < 0) {
- g_printerr("Failed to dump disk data: %s\n", g_strerror(errno));
+ fprintf(stderr, "Failed to dump disk data: %s\n", strerror(errno));
return 1;
}