summaryrefslogtreecommitdiffstats
path: root/plugins/check_ide_smart.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ide_smart.c')
-rw-r--r--plugins/check_ide_smart.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index 644dc488..16cd1a87 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -206,9 +206,7 @@ main (int argc, char *argv[])
206 print_revision (progname, revision); 206 print_revision (progname, revision);
207 return STATE_OK; 207 return STATE_OK;
208 default: 208 default:
209 printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); 209 usage2 (_("Unknown argument"), optarg);
210 print_usage ();
211 exit (STATE_UNKNOWN);
212 } 210 }
213 211
214 if (optind < argc) { 212 if (optind < argc) {
@@ -488,7 +486,6 @@ smart_read_thresholds (int fd, thresholds_t * thresholds)
488} 486}
489 487
490 488
491
492void 489void
493print_help () 490print_help ()
494{ 491{
@@ -515,7 +512,6 @@ Usage: %s [DEVICE] [OPTION]\n\
515} 512}
516 513
517 514
518
519void 515void
520print_usage (void) 516print_usage (void)
521{ 517{