From: Junio C Hamano Date: Mon, 26 Jun 2006 09:26:02 GMT Subject: Re: [PATCH] cast pid_t to long for printing Message-ID: <7vr71ci7yt.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20060626082606.GC3646@informatik.uni-freiburg.de> Uwe Zeisberger writes: > While fixing daemon.c, I saw that there is a call to syslog using %d for > pid_t, too. I fixed that in the same way without further testing and > manual reading. I assume that's OK. Is anybody using pid_t that is wider than int? IOW, I wonder if it would make more sense to use "%d" with casting to int.