summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-07-13 11:23:21 +0200
committerKay Sievers <kay.sievers@suse.de>2005-07-13 11:23:21 +0200
commit5f84d7264d752c9eff91e80070fa199286c25b12 (patch)
tree2355d8e54cded2e24a114c8ed31026da9e986597 /extras
parent0bfb84e1edd96b1e82ffd74c43b865e5d6dbf204 (diff)
trivial fixes for *_id programs
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'extras')
-rw-r--r--extras/ata_id/ata_id.c2
-rw-r--r--extras/volume_id/vol_id.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c
index 54c3c29feb..9df0fdb107 100644
--- a/extras/ata_id/ata_id.c
+++ b/extras/ata_id/ata_id.c
@@ -107,6 +107,8 @@ int main(int argc, char *argv[])
int fd;
int rc = 0;
+ logging_init("ata_id");
+
for (i = 1 ; i < argc; i++) {
char *arg = argv[i];
diff --git a/extras/volume_id/vol_id.c b/extras/volume_id/vol_id.c
index 451fd355c1..1b180a7734 100644
--- a/extras/volume_id/vol_id.c
+++ b/extras/volume_id/vol_id.c
@@ -136,7 +136,7 @@ int main(int argc, char *argv[])
vid = volume_id_open_node(node);
if (vid == NULL) {
- fprintf(stderr, "error open volume\n");
+ fprintf(stderr, "%s: error open volume\n", node);
rc = 2;
goto exit;
}
@@ -149,8 +149,9 @@ int main(int argc, char *argv[])
if (volume_id_probe_dasd(vid) == 0)
goto print;
-
- fprintf(stderr, "unknown volume type\n");
+
+ if (print != PRINT_EXPORT)
+ fprintf(stderr, "%s: unknown volume type\n", node);
rc = 3;
goto exit;