target/xtensa: fix clang analyzer warnings and gcc12 build errors
[fw/openocd] / contrib / itmdump.c
index 896389416033ab212ffcc6793d3fdce0c1015f66..88099040a6dcb24bf0c67c38303ef7263d4e9927 100644 (file)
@@ -39,8 +39,9 @@
 
 #include <errno.h>
 #include <libgen.h>
-#include <stdio.h>
 #include <stdbool.h>
+#include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
@@ -325,7 +326,7 @@ static void show_timestamp(FILE *f, int c)
                delayed = true;
                break;
        case 0xf:
-               label = ", packet and timetamp delayed";
+               label = ", packet and timestamp delayed";
                delayed = true;
                break;
        }