From 15ed93bca6e29fafab036c05ea77c163ab2baebf Mon Sep 17 00:00:00 2001 From: sleske Date: Sat, 22 Nov 2014 22:36:24 +0000 Subject: Fix:core:Change all logging at lvl_error/warning to lvl_debug, unless it looks like an error message.|#1269, part 5 git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5967 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/support/libc/stat.c | 6 +++--- navit/support/win32/serial_io.c | 12 ++++++------ navit/support/wordexp/glob.c | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'navit/support') diff --git a/navit/support/libc/stat.c b/navit/support/libc/stat.c index 393b9f7c..586dcf71 100644 --- a/navit/support/libc/stat.c +++ b/navit/support/libc/stat.c @@ -120,9 +120,9 @@ _stat (const char *path, struct _stat *st) size_t len; int exec; - dbg(lvl_error,"path=%s\n",path); + dbg(lvl_debug,"path=%s\n",path); mbstowcs (pathw, path, MAX_PATH); - dbg(lvl_error,"wide path=%S\n",pathw); + dbg(lvl_debug,"wide path=%S\n",pathw); if((h = FindFirstFileW (pathw, &fd)) == INVALID_HANDLE_VALUE) { DWORD dwError = GetLastError (); @@ -139,7 +139,7 @@ _stat (const char *path, struct _stat *st) exec = (len >= 4 && strcasecmp (path + len - 4, ".exe") == 0); ret = __stat_by_file_info (&sfi, st, exec); - dbg(lvl_error,"ret=%d\n",ret); + dbg(lvl_debug,"ret=%d\n",ret); FindClose (h); return ret; } diff --git a/navit/support/win32/serial_io.c b/navit/support/win32/serial_io.c index c2461949..2eba8ece 100644 --- a/navit/support/win32/serial_io.c +++ b/navit/support/win32/serial_io.c @@ -72,7 +72,7 @@ int serial_io_init( const char* port, const char* strsettings ) SetCommTimeouts(hCom, &sCT); - dbg(lvl_warning, "serial_io_init return (fd) : '%d'\n", (int)hCom); + dbg(lvl_debug, "serial_io_init return (fd) : '%d'\n", (int)hCom); return (int)hCom; } @@ -94,12 +94,12 @@ int serial_io_init( const char* port, const char* strsettings ) int serial_io_read( int fd, char * buffer, int buffer_size ) { DWORD dwBytesIn = 0; - dbg(lvl_warning, "serial_io_read fd = %d buffer_size = %d\n", fd, buffer_size); + dbg(lvl_debug, "serial_io_read fd = %d buffer_size = %d\n", fd, buffer_size); if (fd <= 0) { - dbg(lvl_error, "serial_io_read return (dwBytesIn) : '0'\n"); + dbg(lvl_debug, "serial_io_read return (dwBytesIn) : '0'\n"); *buffer = 0; return 0; } @@ -117,7 +117,7 @@ int serial_io_read( int fd, char * buffer, int buffer_size ) } if (dwBytesIn > 0) { - dbg(lvl_warning,"GPS < %s\n",buffer ); + dbg(lvl_debug,"GPS < %s\n",buffer ); } buffer[buffer_size - 1] = 0; @@ -139,7 +139,7 @@ int serial_io_read( int fd, char * buffer, int buffer_size ) int serial_io_write(int fd, const char * buffer) { DWORD dwBytesOut = 0; - dbg(lvl_warning, "serial_io_write fd = %d buffer = '%s'\n",fd, buffer); + dbg(lvl_debug, "serial_io_write fd = %d buffer = '%s'\n",fd, buffer); WriteFile((HANDLE)fd, buffer, strlen(buffer), &dwBytesOut, NULL); @@ -157,7 +157,7 @@ int serial_io_write(int fd, const char * buffer) **/ void serial_io_shutdown(int fd ) { - dbg(lvl_warning, "serial_io_shutdown fd = %d\n",fd); + dbg(lvl_debug, "serial_io_shutdown fd = %d\n",fd); if (fd > 0) { diff --git a/navit/support/wordexp/glob.c b/navit/support/wordexp/glob.c index d6282c4a..8337367d 100644 --- a/navit/support/wordexp/glob.c +++ b/navit/support/wordexp/glob.c @@ -130,7 +130,7 @@ glob_recursive(const char *path1, const char *path2, const char *pattern, int fl strcat(path, "/"); strcat(path, path2); if (!strlen(pattern)) { - dbg(lvl_warning,"found %s\n",path); + dbg(lvl_debug,"found %s\n",path); pglob->gl_pathv=realloc(pglob->gl_pathv, (pglob->gl_pathc+1)*sizeof(char *)); if (!pglob->gl_pathv) { pglob->gl_pathc=0; @@ -139,7 +139,7 @@ glob_recursive(const char *path1, const char *path2, const char *pattern, int fl pglob->gl_pathv[pglob->gl_pathc++]=path; return 0; } - dbg(lvl_warning,"searching for %s in %s\n",pattern,path); + dbg(lvl_debug,"searching for %s in %s\n",pattern,path); flen=strcspn(pattern,"/"); next=pattern+flen; if (*next == '/') @@ -150,7 +150,7 @@ glob_recursive(const char *path1, const char *path2, const char *pattern, int fl if (glob_requires_match(fname, 0)) { DIR *dh; struct dirent *de; - dbg(lvl_warning,"in dir %s search for %s\n",path,fname); + dbg(lvl_debug,"in dir %s search for %s\n",path,fname); dh=opendir(path); if (dh) { while ((de=readdir(dh))) { -- cgit v1.2.1