Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-17000 utils: Fix check after return from fopen()
[fs/lustre-release.git]
/
lustre
/
utils
/
ofd_access_log_reader.c
diff --git
a/lustre/utils/ofd_access_log_reader.c
b/lustre/utils/ofd_access_log_reader.c
index
cf72d9e
..
051b76f
100644
(file)
--- a/
lustre/utils/ofd_access_log_reader.c
+++ b/
lustre/utils/ofd_access_log_reader.c
@@
-792,8
+792,8
@@
int main(int argc, char *argv[])
trace_file = stdout;
} else {
trace_file = fopen(optarg, "a");
- if (
debug
_file == NULL)
- FATAL("cannot open
debug
file '%s': %s\n",
+ if (
trace
_file == NULL)
+ FATAL("cannot open
trace
file '%s': %s\n",
optarg, strerror(errno));
}