When the logging functions were switched to use `echo` instead
of `printf` the literal newline that was necessary with `printf`
was not removed. This commit remedies that oversight.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
| ... | ... |
@@ -19,7 +19,7 @@ readonly -f os::log::info |
| 19 | 19 |
# Arguments: |
| 20 | 20 |
# - all: message to write |
| 21 | 21 |
function os::log::warn() {
|
| 22 |
- os::text::print_yellow "[WARNING] $*\n" 1>&2 |
|
| 22 |
+ os::text::print_yellow "[WARNING] $*" 1>&2 |
|
| 23 | 23 |
} |
| 24 | 24 |
readonly -f os::log::warn |
| 25 | 25 |
|
| ... | ... |
@@ -30,7 +30,7 @@ readonly -f os::log::warn |
| 30 | 30 |
# Arguments: |
| 31 | 31 |
# - all: message to write |
| 32 | 32 |
function os::log::error() {
|
| 33 |
- os::text::print_red "[ERROR] $*\n" 1>&2 |
|
| 33 |
+ os::text::print_red "[ERROR] $*" 1>&2 |
|
| 34 | 34 |
} |
| 35 | 35 |
readonly -f os::log::error |
| 36 | 36 |
|
| ... | ... |
@@ -42,7 +42,7 @@ readonly -f os::log::error |
| 42 | 42 |
# Arguments: |
| 43 | 43 |
# - all: message to write |
| 44 | 44 |
function os::log::fatal() {
|
| 45 |
- os::text::print_red "[FATAL] $*\n" 1>&2 |
|
| 45 |
+ os::text::print_red "[FATAL] $*" 1>&2 |
|
| 46 | 46 |
return 1 |
| 47 | 47 |
} |
| 48 | 48 |
readonly -f os::log::fatal |
| 49 | 49 |
\ No newline at end of file |