]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change optimize switch case debug
authorBastian Dehn <hhaalo@arcor.de>
Sat, 27 Sep 2025 15:01:40 +0000 (17:01 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 27 Sep 2025 15:01:40 +0000 (17:01 +0200)
src/kds_s2000w_debug.c

index 748abd01131c226a48a8317f60e1770b55b36717..6531b2b21926bd1318f3f9b0f5b3e9dddaf93436 100644 (file)
@@ -10,22 +10,22 @@ uint8_t log_level_default = 0;
 const char* _kds_s2000w_debug_string(uint8_t level)
 {
        switch(level) {
-               case 0:
-                       return "OFF";
-               case 1:
-                       return "FATAL";
-               case 2:
-                       return "ERROR";
-               case 3:
-                       return "WARN";
-               case 4:
-                       return "INFO";
-               case 5:
-                       return "DEBUG";
-               case 6:
-                       return "ALL";
-               default:
-                       return "unknown";
+       case 0:
+               return "OFF";
+       case 1:
+               return "FATAL";
+       case 2:
+               return "ERROR";
+       case 3:
+               return "WARN";
+       case 4:
+               return "INFO";
+       case 5:
+               return "DEBUG";
+       case 6:
+               return "ALL";
+       default:
+               return "unknown";
        }
 }