[PATCH xdm] Fix format string for systems where time_t is 64 bits long.

Alan Coopersmith alan.coopersmith at oracle.com
Sun Aug 18 09:57:42 PDT 2013


On 08/18/13 02:10 AM, Matthieu Herrb wrote:
> Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
> ---
>   xdm/dm.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git xdm/dm.c xdm/dm.c
> index cb81386..815950c 100644
> --- xdm/dm.c
> +++ xdm/dm.c
> @@ -533,7 +533,8 @@ WaitForChild (void)
>   		  time(&now);
>   		  crash = d->lastReserv &&
>   		    ((now - d->lastReserv) < XDM_BROKEN_INTERVAL);
> -		  Debug("time %li %li try %i of %i%s\n", now, d->lastReserv,
> +		  Debug("time %lli %lli try %i of %i%s\n",
> +			(long long)now, (long long)d->lastReserv,
>   			d->reservTries, d->reservAttempts,
>   			crash ? " crash" : "");
>
>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list