Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19sp
lab03
Commits
20d955aa
Commit
20d955aa
authored
5 years ago
by
Caleb C. Sander
Browse files
Options
Download
Email Patches
Plain Diff
Fix usage message
parent
9777f43b
master
No related merge requests found
Pipeline
#19469
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mdriver.c
+11
-10
mdriver.c
with
11 additions
and
10 deletions
+11
-10
mdriver.c
View file @
20d955aa
...
...
@@ -1233,14 +1233,15 @@ void malloc_error(const trace_t *trace, int opnum, const char *fmt, ...)
*/
static
void
usage
(
void
)
{
fprintf
(
stderr
,
"Usage: mdriver [-hlVdD] [-f <file>]
\n
"
);
fprintf
(
stderr
,
"Options
\n
"
);
fprintf
(
stderr
,
"
\t
-d <i> Debug: 0 off; 1 default; 2 lots.
\n
"
);
fprintf
(
stderr
,
"
\t
-D Equivalent to -d2.
\n
"
);
fprintf
(
stderr
,
"
\t
-c <file> Run trace file <file> once, check for correctness only.
\n
"
);
fprintf
(
stderr
,
"
\t
-t <dir> Directory to find default traces.
\n
"
);
fprintf
(
stderr
,
"
\t
-h Print this message.
\n
"
);
fprintf
(
stderr
,
"
\t
-l Run libc malloc as well.
\n
"
);
fprintf
(
stderr
,
"
\t
-s <s> Timeout after s secs (default no timeout)
\n
"
);
fprintf
(
stderr
,
"
\t
-f <file> Use <file> as the trace file.
\n
"
);
fprintf
(
stderr
,
"Usage: mdriver [-hlD] [-d <i>] [-t <dir>] [-c <file>] [-f <file>]
\n
"
"Options
\n
"
"
\t
-d <i> Debug: 0 off; 1 default; 2 lots.
\n
"
"
\t
-D Equivalent to -d2.
\n
"
"
\t
-c <file> Run trace file <file> once, check for correctness only.
\n
"
"
\t
-t <dir> Directory to find default traces.
\n
"
"
\t
-h Print this message.
\n
"
"
\t
-l Run libc malloc as well.
\n
"
"
\t
-f <file> Use <file> as the trace file.
\n
"
);
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help