You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
375 B

--- a/debug.c
+++ b/debug.c
@@ -153,7 +153,7 @@ void debug_logit(uint8_t level, const ch
if (debug_tid) {
tidbuf = malloc((3*sizeof(pthread_t)+5)+strlen(format));
- sprintf(tidbuf, "(%ld) %s", pthread_self(), format);
+ sprintf(tidbuf, "(%ld) %s", (long int)pthread_self(), format);
format = tidbuf;
} else
tidbuf = NULL;