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

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