Package: hdparm / 9.51+ds-1+deb9u1

quiet_security_freeze.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Subject: don't print message to sdtout if -q flag is used
From: Alex Mestiashvili <mailatgoogl@gmail.com>
--- hdparm.orig/hdparm.c
+++ hdparm/hdparm.c
@@ -2254,7 +2254,8 @@
 	}
 	if (security_freeze) {
 		__u8 args[4] = {ATA_OP_SECURITY_FREEZE_LOCK,0,0,0};
-		printf(" issuing security freeze command\n");
+		if (!quiet)
+			printf(" issuing security freeze command\n");
 		if (do_drive_cmd(fd, args, 0)) {
 			err = errno;
 			perror(" HDIO_DRIVE_CMD(security_freeze) failed");