summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_log.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-12-14 21:30:16 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-12-14 21:30:16 +0000
commitc730f12da81f636ecf65aa656a46b9337daaa37a (patch)
tree0b069d59b6366447e0a0d40982ac610fbe86d9a7 /plugins/Clist_modern/src/modern_log.cpp
parent91867c03b57bbf85eae500475683c16da4ec3a9c (diff)
Clist_modern: changed warning lavel to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11425 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_log.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_log.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/plugins/Clist_modern/src/modern_log.cpp b/plugins/Clist_modern/src/modern_log.cpp
index af2b9c9a68..25122fef72 100644
--- a/plugins/Clist_modern/src/modern_log.cpp
+++ b/plugins/Clist_modern/src/modern_log.cpp
@@ -5,14 +5,14 @@
#include <string.h>
-void Log(const char *file,int line,const char *fmt,...)
+void Log(const char *file, int line, const char *fmt, ...)
{
-
+
va_list vararg;
const char *file_tmp;
char str[1024];
- char buf[1024];
+ char buf[1024];
file_tmp = strrchr(file, '\\');
if (file_tmp == NULL)
@@ -20,27 +20,27 @@ void Log(const char *file,int line,const char *fmt,...)
else
file_tmp++;
- va_start(vararg,fmt);
- mir_vsnprintf(str,SIZEOF(str),fmt,vararg);
+ va_start(vararg, fmt);
+ mir_vsnprintf(str, SIZEOF(str), fmt, vararg);
va_end(vararg);
- {
- char * tmp = str;
- while(*tmp != '\0')
- {
- if (*tmp == '\n') *tmp = ' ';
- tmp++;
- }
- }
- mir_snprintf(buf,SIZEOF(buf),"clist_modern:[%u - %u]: %s \t\t(%s Ln %d)\n",GetCurrentThreadId(),GetTickCount(),str,file_tmp,line);
+ {
+ char * tmp = str;
+ while (*tmp != '\0')
+ {
+ if (*tmp == '\n') *tmp = ' ';
+ tmp++;
+ }
+ }
+ mir_snprintf(buf, SIZEOF(buf), "clist_modern:[%u - %u]: %s \t\t(%s Ln %d)\n", GetCurrentThreadId(), GetTickCount(), str, file_tmp, line);
#ifdef _FILELOG_
- {
- FILE *fp;
- fp = fopen(_FILELOG_,"at");
- fprintf(fp,buf);
- fclose(fp);
- }
+ {
+ FILE *fp;
+ fp = fopen(_FILELOG_,"at");
+ fprintf(fp,buf);
+ fclose(fp);
+ }
#else
- OutputDebugStringA(buf);
+ OutputDebugStringA(buf);
#endif
}