summaryrefslogtreecommitdiff
path: root/extra/eject/eject-2.1.1-verbose.patch
blob: 44c05d8819dcdb453db4bb7ab03af8473c0eff72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
 	}