summaryrefslogtreecommitdiff
path: root/client/application.cpp
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-12-06 17:52:26 +0200
committerAlon Levy <alevy@redhat.com>2010-12-08 17:13:28 +0200
commit0449d0520c1173ca70eaf011f69de6123e5c2a48 (patch)
tree52e82ab12f4b180670040c67501264023a513de1 /client/application.cpp
parent3cc0fb24ce1473717021c4dc2c3c9789ca87e310 (diff)
mingw32 build: use PRIu64 instead of ll
Diffstat (limited to 'client/application.cpp')
-rw-r--r--client/application.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/application.cpp b/client/application.cpp
index 3f1ae71..8f41ccf 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -15,6 +15,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#define __STDC_FORMAT_MACROS
+#include <inttypes.h>
#include "common.h"
#ifdef WIN32
#include <io.h>
@@ -2499,8 +2501,10 @@ void spice_log(unsigned int type, const char *function, const char *format, ...)
va_end(ap);
if (type >= log_level && log_file != NULL) {
- fprintf(log_file, "%ld %s [%llu:%llu] %s: %s\n", (long)time(NULL), type_as_char[type],
- (long long int)Platform::get_process_id(), (long long int)Platform::get_thread_id(),
+ fprintf(log_file,"%ld %s [%" PRIu64 ":%" PRIu64 "] %s: %s\n",
+ (long)time(NULL), type_as_char[type],
+ Platform::get_process_id(),
+ Platform::get_thread_id(),
function_to_func_name(function).c_str(),
formated_message.c_str());
fflush(log_file);