summaryrefslogtreecommitdiffstats
path: root/urunlevel/runlevel/log_failure_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'urunlevel/runlevel/log_failure_msg.c')
-rw-r--r--urunlevel/runlevel/log_failure_msg.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/urunlevel/runlevel/log_failure_msg.c b/urunlevel/runlevel/log_failure_msg.c
index 47f43f7..7ec4c07 100644
--- a/urunlevel/runlevel/log_failure_msg.c
+++ b/urunlevel/runlevel/log_failure_msg.c
@@ -3,6 +3,9 @@
3 * 3 *
4 * Copyright (C) 2005 by David Seikel won_fang@yahoo.com.au 4 * Copyright (C) 2005 by David Seikel won_fang@yahoo.com.au
5 * 5 *
6 * Clean room implementation of LSB init.d specs.
7 * I didn't steal any of this, honest B-).
8 *
6 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or 11 * the Free Software Foundation; either version 2 of the License, or
@@ -28,7 +31,7 @@
28 31
29void log_failure_msg(char *message) 32void log_failure_msg(char *message)
30{ 33{
31 bb_perror_msg("Failure - %s\n", message); 34 bb_error_msg("Failure - %s\n", message);
32} 35}
33 36
34 37
@@ -41,14 +44,13 @@ log_failure_msg "message"
41 44
42int log_failure_msg_main(int argc, char **argv) 45int log_failure_msg_main(int argc, char **argv)
43{ 46{
44 char *message = argv_cat(argc, argv); 47 char *message = argv_cat(argc, argv);
45 48
46 if (message != NULL) 49 if (message != NULL) {
47 { 50 log_failure_msg(message);
48 log_failure_msg(message);
49 51
50 free(message); 52 free(message);
51 return EXIT_SUCCESS; 53 return EXIT_SUCCESS;
52 } 54 }
53 return EXIT_FAILURE; 55 return EXIT_FAILURE;
54} 56}