From: Martin Vidner Date: Thu, 19 Oct 2006 09:05:04 +0000 (+0000) Subject: Fixed the format string to work even on 64bit arch. X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7d82b3791936266e47a8f507752bbeca4f69e86;p=platform%2Fupstream%2Flibzypp.git Fixed the format string to work even on 64bit arch. Using -Wextra is good for you. --- diff --git a/zypp/base/ProfilingFormater.cc b/zypp/base/ProfilingFormater.cc index f4c5496..28a21ac 100644 --- a/zypp/base/ProfilingFormater.cc +++ b/zypp/base/ProfilingFormater.cc @@ -49,7 +49,7 @@ namespace zypp int rtn; rtn = gettimeofday( &tp, NULL); - return str::form( "%i.%i [%d] <%d> %s(%s):%d %s", + return str::form( "%ld.%ld [%d] <%d> %s(%s):%d %s", tp.tv_sec, tp.tv_usec, level_r,