From: Mateusz Moscicki Date: Thu, 1 Feb 2024 14:25:14 +0000 (+0100) Subject: blkid-print: Disable the display of help message when partition not found X-Git-Tag: accepted/tizen/unified/20240214.163949~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1abee9c90c1cd16608203653e1b49c98c9e1a22d;p=platform%2Fcore%2Fsystem%2Fupgrade.git blkid-print: Disable the display of help message when partition not found Displaying a help message may suggest that the program was called with incorrect parameters. Change-Id: Ifb6d036b3d78f76da32ce37bc3210a339df09314 --- diff --git a/src/blkid-print/blkid-print.c b/src/blkid-print/blkid-print.c index 4da1e7d..05d5f5d 100644 --- a/src/blkid-print/blkid-print.c +++ b/src/blkid-print/blkid-print.c @@ -110,7 +110,6 @@ int main(int argc, char *argv[]) { blkid_partition part = partition_for(device_name, partition_label, suffix); if (part == NULL) { fprintf(stderr, "ERROR: Partition '%s' not found.\n", partition_label); - usage(NULL); return 2; } int part_nr = blkid_partition_get_partno(part);