about summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/resolv/res_debug.c b/resolv/res_debug.c
index 4cbed577f8..62cd81cd0f 100644
--- a/resolv/res_debug.c
+++ b/resolv/res_debug.c
@@ -689,8 +689,9 @@ __p_rr(cp, msg, file)
 	putc('\n', file);
 #endif
 	if (cp - cp1 != dlen) {
-		fprintf(file, ";; packet size error (found %d, dlen was %d)\n",
-			cp - cp1, dlen);
+		fprintf(file,
+			";; packet size error (found %lu, dlen was %d)\n",
+			(unsigned long) (cp - cp1), dlen);
 		cp = NULL;
 	}
 	return (cp);