1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 23:21:08 +03:00

trivial fixes for *_id programs

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
Kay Sievers 2005-07-13 11:23:21 +02:00
parent 0bfb84e1ed
commit 5f84d7264d
2 changed files with 6 additions and 3 deletions

View File

@ -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];

View File

@ -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;