void-packages/srcpkgs/eject/patches/eject-2.1.1-verbose.patch

15 lines
392 B
Diff

diff --git a/eject.c b/eject.c
index b14d5f2..662ba54 100644
--- a/eject.c
+++ b/eject.c
@@ -709,7 +709,9 @@ static int EjectScsi(int fd)
unsigned char sense_buffer[32];
if ((ioctl(fd, SG_GET_VERSION_NUM, &k) < 0) || (k < 30000)) {
- printf("not an sg device, or old sg driver\n");
+ if (v_option) {
+ printf(_("not an sg device, or old sg driver\n"));
+ }
return 0;
}