aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/c_src/erl_memory.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-01-04 18:24:31 +0100
committerBjörn-Egil Dahlberg <[email protected]>2012-01-04 18:24:31 +0100
commita69fb329f36b8c76b5bf5d2819e66b481e5a8b7f (patch)
tree2bcef4f81b6325a6de8d24a19e6a360ca3db6b6b /lib/tools/c_src/erl_memory.c
parent7f2cd602577646e927c60cf381e88246e6ecee96 (diff)
parentf9ca630a95e1e2adb1b225bfb69e3101678183f3 (diff)
downloadotp-a69fb329f36b8c76b5bf5d2819e66b481e5a8b7f.tar.gz
otp-a69fb329f36b8c76b5bf5d2819e66b481e5a8b7f.tar.bz2
otp-a69fb329f36b8c76b5bf5d2819e66b481e5a8b7f.zip
Merge branch 'maint'
* maint: erts: Use re instead of regexp in testsuite erts: Remove unused code in testsuites orber: Use modern list guard in testsuite orber: Ignore unused variable in orber_tb.erl xmerl: Ignore unused variable in xmerl_uri.erl syntax_tool: Add missing type information hipe: Suppress warnings for unused variables hipe: Add type information to cfg_info record tools: Use literal formatting in erl_memory.c asn1: Remove unused variable in asn1_erl_nif.c ei: Remove unused variable in ei_format.c erts: Add missing prototype to DRIVER_INIT runtime_tools: Fix signedness in trace_ip_drv.c to_erl: Remove compiler warnings heart: Suppress compiler warnings erts: Remove compiler warnings in inet_gethost.c erts: Remove dead code in inet_gethost.c erts: Remove dead code
Diffstat (limited to 'lib/tools/c_src/erl_memory.c')
-rw-r--r--lib/tools/c_src/erl_memory.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/tools/c_src/erl_memory.c b/lib/tools/c_src/erl_memory.c
index 872d55e789..5239176d03 100644
--- a/lib/tools/c_src/erl_memory.c
+++ b/lib/tools/c_src/erl_memory.c
@@ -1224,7 +1224,7 @@ print_main_footer(em_state *state)
switch (state->info.stop_reason) {
case EMTP_STOP:
- p += sprintf(p, stop_str);
+ p += sprintf(p, "%s", stop_str);
break;
case EMTP_EXIT:
p += sprintf(p, exit_str, state->info.exit_status);
@@ -2339,7 +2339,7 @@ usage(char *sw, char *error)
if (error)
exit(1);
else {
- char *help_str =
+ fprintf(filep,
"\n"
" [] - switch is allowed any number of times\n"
" {} - switch is allowed at most one time\n"
@@ -2370,8 +2370,7 @@ usage(char *sw, char *error)
" " SW_CHAR "o - display operation count values\n"
" " SW_CHAR "p <P> - set listen port to <P>\n"
" " SW_CHAR "t - display info about total values\n"
- " " SW_CHAR "v - verbose output\n";
- fprintf(filep, help_str);
+ " " SW_CHAR "v - verbose output\n");
exit(0);
}