udev/cdrom_id: drop duplicated logs
This commit is contained in:
parent
20a744b795
commit
f1ff9e8dd9
|
@ -874,7 +874,6 @@ int main(int argc, char *argv[]) {
|
||||||
node = argv[optind];
|
node = argv[optind];
|
||||||
if (!node) {
|
if (!node) {
|
||||||
log_error("no device");
|
log_error("no device");
|
||||||
fprintf(stderr, "no device\n");
|
|
||||||
rc = 1;
|
rc = 1;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
@ -892,7 +891,6 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
log_debug("unable to open '%s'", node);
|
log_debug("unable to open '%s'", node);
|
||||||
fprintf(stderr, "unable to open '%s'\n", node);
|
|
||||||
rc = 1;
|
rc = 1;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue