From 3793b6768d7731f7f43b3fcef9ea782823e322ac Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 14 Mar 2009 23:04:25 +0000 Subject: [PATCH] oops, use %06d for the microseconds! --- src/misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index 137639f0..13d1f7ec 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1,4 +1,5 @@ /* Copyright (c) 2004-2007, Sara Golemon + * Copyright (c) 2009 by Daniel Stenberg * All rights reserved. * * Redistribution and use in source and binary forms, @@ -219,7 +220,7 @@ _libssh2_debug(LIBSSH2_SESSION * session, int context, const char *format, ...) } now.tv_sec -= firstsec; - len = snprintf(buffer, sizeof(buffer), "[libssh2] %d.%-6d %s: ", + len = snprintf(buffer, sizeof(buffer), "[libssh2] %d.%06d %s: ", (int)now.tv_sec, (int)now.tv_usec, contexts[context]); va_start(vargs, format);