File: 005-remove-argc-output

package info (click to toggle)
mtx 1.3.12-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,380 kB
  • sloc: ansic: 7,123; sh: 3,209; python: 203; perl: 117; makefile: 113
file content (30 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Author: Dan HorĂ¡k <dan@danny.cz>
Description: remove the weird debugging-like info
 The loaderinfo and tapeinfo utilities print a debugging-like
 information about the number of arguments on command line when
 started with wrong number of arguments.
 .
 This patch is taken from Fedora:
 https://src.fedoraproject.org/rpms/mtx/tree/master
Date: Thu, 19 Nov 2009 15:45:54 +0100

--- a/loaderinfo.c
+++ b/loaderinfo.c
@@ -488,7 +488,6 @@
 	argv0=argv[0];
 	if (argc != 3)
 	{
-		fprintf(stderr,"argc=%d",argc);
 		usage();
 	}
 
--- a/tapeinfo.c
+++ b/tapeinfo.c
@@ -933,7 +933,6 @@
 
 	if (argc != 3)
 	{
-		fprintf(stderr,"argc=%d",argc);
 		usage();
 	}