summaryrefslogtreecommitdiff
path: root/databases/flare/files/patch-lib-logger.cc
blob: cc996dd135199cdefeed48a959e9757829fa8e41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
--- src/lib/logger.cc.orig	2009-10-09 19:08:47.000000000 +0900
+++ src/lib/logger.cc	2010-05-29 10:05:44.216154429 +0900
@@ -69,7 +69,7 @@
  */
 void logger::emerg(const char* file, const int line, const char* func, const char *format, ...) {
 	ostringstream s;
-	s << "[" << (unsigned int)pthread_self() << "][EMG][" << file << ":" << line << "-" << func << "] ";
+	s << "[" << (unsigned long)pthread_self() << "][EMG][" << file << ":" << line << "-" << func << "] ";
 
 	char buf[1024];
 	va_list op;
@@ -85,7 +85,7 @@
  */
 void logger::alert(const char* file, const int line, const char* func, const char *format, ...) {
 	ostringstream s;
-	s << "[" << (unsigned int)pthread_self() << "][ALT][" << file << ":" << line << "-" << func << "] ";
+	s << "[" << (unsigned long)pthread_self() << "][ALT][" << file << ":" << line << "-" << func << "] ";
 
 	char buf[1024];
 	va_list op;
@@ -101,7 +101,7 @@
  */
 void logger::crit(const char* file, const int line, const char* func, const char *format, ...) {
 	ostringstream s;
-	s << "[" << (unsigned int)pthread_self() << "][CRT][" << file << ":" << line << "-" << func << "] ";
+	s << "[" << (unsigned long)pthread_self() << "][CRT][" << file << ":" << line << "-" << func << "] ";
 
 	char buf[1024];
 	va_list op;
@@ -117,7 +117,7 @@
  */
 void logger::err(const char* file, const int line, const char* func, const char *format, ...) {
 	ostringstream s;
-	s << "[" << (unsigned int)pthread_self() << "][ERR][" << file << ":" << line << "-" << func << "] ";
+	s << "[" << (unsigned long)pthread_self() << "][ERR][" << file << ":" << line << "-" << func << "] ";
 
 	char buf[1024];
 	va_list op;
@@ -133,7 +133,7 @@
  */
 void logger::warning(const char* file, const int line, const char* func, const char *format, ...) {
 	ostringstream s;
-	s << "[" << (unsigned int)pthread_self() << "][WRN][" << file << ":" << line << "-" << func << "] ";
+	s << "[" << (unsigned long)pthread_self() << "][WRN][" << file << ":" << line << "-" << func << "] ";
 
 	char buf[1024];
 	va_list op;
@@ -149,7 +149,7 @@
  */
 void logger::notice(const char* file, const int line, const char* func, const char *format, ...) {
 	ostringstream s;
-	s << "[" << (unsigned int)pthread_self() << "][NTC][" << file << ":" << line << "-" << func << "] ";
+	s << "[" << (unsigned long)pthread_self() << "][NTC][" << file << ":" << line << "-" << func << "] ";
 
 	char buf[1024];
 	va_list op;
@@ -165,7 +165,7 @@
  */
 void logger::info(const char* file, const int line, const char* func, const char *format, ...) {
 	ostringstream s;
-	s << "[" << (unsigned int)pthread_self() << "][INF][" << file << ":" << line << "-" << func << "] ";
+	s << "[" << (unsigned long)pthread_self() << "][INF][" << file << ":" << line << "-" << func << "] ";
 
 	char buf[1024];
 	va_list op;
@@ -181,7 +181,7 @@
  */
 void logger::debug(const char* file, const int line, const char* func, const char *format, ...) {
 	ostringstream s;
-	s << "[" << (unsigned int)pthread_self() << "][DBG][" << file << ":" << line << "-" << func << "] ";
+	s << "[" << (unsigned long)pthread_self() << "][DBG][" << file << ":" << line << "-" << func << "] ";
 
 	char buf[1024];
 	va_list op;