Minor debugging tweaks
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 5 Dec 2012 12:15:29 +0000 (12:15 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 5 Dec 2012 12:18:12 +0000 (12:18 +0000)
src/main/threads.c
src/main/xlat.c

index 6fe964f..92ccde6 100644 (file)
@@ -536,8 +536,8 @@ static int request_dequeue(REQUEST **prequest)
        pthread_mutex_unlock(&thread_pool.queue_mutex);
 
        if (blocked) {
-               radlog(L_ERR, "Request %u has been waiting in the processing queue for %d seconds.  Check that all databases are running properly!",
-                      request->number, (int) blocked);
+               radlog(L_ERR, "%s %u has been waiting in the processing queue for %d seconds.  Check that all databases are running properly!",
+                      fr_packet_codes[request->packet->code], request->number, (int) blocked);
        }
 
        return 1;
index b7b6544..a8dfdef 100644 (file)
@@ -1439,7 +1439,7 @@ size_t radius_xlat(char *out, int outlen, const char *fmt,
        }
        *q = '\0';
 
-       RDEBUG2("\texpand: %s -> %s", fmt, out);
+       RDEBUG2("\texpand: '%s' -> '%s'", fmt, out);
 
        return strlen(out);
 }