]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/ukdebug: Replace fallthrough comment markers with macro
authorMichalis Pappas <michalis@unikraft.io>
Tue, 3 Oct 2023 16:08:51 +0000 (18:08 +0200)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:35:55 +0000 (19:35 +0300)
Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Rares Miculescu <miculescur@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1116

lib/ukdebug/snprintf.c

index bfdd7057d29d6d2f1887e1a4e572fec184dc2021..62addff07cef5cb4a02314c0c01817c1b815ce26 100644 (file)
@@ -59,6 +59,8 @@
 #include <string.h>
 #include "snprintf.h"
 
+#include <uk/essentials.h>
+
 /* 64 bits + 0-Byte at end */
 #define MAXNBUF 65
 
@@ -173,7 +175,7 @@ reswitch:
                                padc = '0';
                                goto reswitch;
                        }
-               /* fallthrough */
+                       __fallthrough;
                case '1':
                case '2':
                case '3':