File: 019-log_tv_used_signed.patch

package info (click to toggle)
slirp 1%3A1.0.17-12
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,988 kB
  • sloc: ansic: 17,590; makefile: 157; perl: 53; sh: 2
file content (24 lines) | stat: -rw-r--r-- 901 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From d20acd8f16cc884611bcf3fd8ad5665876a22f0a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ferenc=20W=C3=A1gner?= <wferi@debian.org>
Date: Fri, 20 Oct 2023 21:22:46 +0200
Subject: [PATCH 2/3] Log tv_usec as the signed long it is

---
 src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: slirp-1.0.17/src/main.c
===================================================================
--- slirp-1.0.17.orig/src/main.c	2025-11-14 22:19:27.879800959 +0100
+++ slirp-1.0.17/src/main.c	2025-11-14 22:19:27.875800975 +0100
@@ -935,8 +935,8 @@
 	if ((timeout.tv_usec < 0) || (tmp_time >= 0 && tmp_time < timeout.tv_usec))
 		timeout.tv_usec = tmp_time;
 #endif
-	DEBUG_MISC((dfd, " timeout.tv_usec = %u",
-		    (u_int)timeout.tv_usec));
+	DEBUG_MISC((dfd, " timeout.tv_usec = %ld",
+		    (long)timeout.tv_usec));
 	if (time_fasttimo) {
 		DEBUG_MISC((dfd, ", need fasttimo\n"));
 	} else {