[Spice-devel] [PATCH 24/24] mingw32 build: use PRIu64 instead of ll
Alon Levy
alevy at redhat.com
Tue Dec 7 13:28:23 PST 2010
---
client/application.cpp | 8 ++++++--
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);
--
1.7.3.2
More information about the Spice-devel
mailing list