Browse code

small improvements

Nat! authored on 23-09-2017 14:25:45
Showing 2 changed files
... ...
@@ -40,11 +40,13 @@ MULLE_BOOTSTRAP_LOGGING_VERSION="3.0"
40 40
 #
41 41
 log_printf()
42 42
 {
43
+   local format="$1" ; shift
44
+
43 45
    if [ -z "${MULLE_EXEKUTOR_LOG_DEVICE}" ]
44 46
    then
45
-      printf "$@" >&2
47
+      printf "${format}" "$@" >&2
46 48
    else
47
-      printf "$@" > "${MULLE_EXEKUTOR_LOG_DEVICE}"
49
+      printf "${format}" "$@" > "${MULLE_EXEKUTOR_LOG_DEVICE}"
48 50
    fi
49 51
 }
50 52
 
... ...
@@ -786,7 +786,7 @@ paths_main()
786 786
          ;;
787 787
 
788 788
          -*)
789
-            log_error "${MULLE_EXECUTABLE_FAIL_PREFIX}: Unknown option $1"
789
+            log_error "${MULLE_EXECUTABLE_FAIL_PREFIX}: Unknown option \"$1\""
790 790
             paths_usage
791 791
          ;;
792 792