aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-05-22 10:33:32 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:44 -0700
commitea302f98a5df338c6f5f2b40125c7217eb390e99 (patch)
tree34d1401474089971b8bfbc11d055064df767c7a7
parente076739b4e9ed4511a5582b70dc6c1ce8e12d1bf (diff)
downloadsparse-ea302f98a5df338c6f5f2b40125c7217eb390e99.tar.gz
sparse-ea302f98a5df338c6f5f2b40125c7217eb390e99.tar.xz
sparse-ea302f98a5df338c6f5f2b40125c7217eb390e99.zip
Print out the rigth filename when an open fails..
-rw-r--r--check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/check.c b/check.c
index 24a03b0..6d640ab 100644
--- a/check.c
+++ b/check.c
@@ -133,7 +133,7 @@ int main(int argc, char **argv)
fd = open(filename, O_RDONLY);
if (fd < 0)
- die("No such file: %s", argv[1]);
+ die("No such file: %s", filename);
// Tokenize the input stream
token = tokenize(filename, fd, NULL);