From 2a6aa9b917249f44e4aa27d88e255f61eb171d6a Mon Sep 17 00:00:00 2001 From: sleske Date: Sat, 22 Nov 2014 22:34:19 +0000 Subject: Refactor:core:Introduce enum for debug levels, and use it everywhere.|First part of #1269. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5960 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/gui/win32/gui_win32.c | 6 +++--- navit/gui/win32/win32_gui_destination.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'navit/gui/win32') diff --git a/navit/gui/win32/gui_win32.c b/navit/gui/win32/gui_win32.c index 3596496a2..1e7c941ec 100644 --- a/navit/gui/win32/gui_win32.c +++ b/navit/gui/win32/gui_win32.c @@ -185,7 +185,7 @@ static void window_layout( HWND hwnd ) rcClient.top += iToolHeight; - dbg(0, "resize gui to: %d %d %d %d \n", rcClient.left, rcClient.right, rcClient.top, rcClient.bottom ); + dbg(lvl_error, "resize gui to: %d %d %d %d \n", rcClient.left, rcClient.right, rcClient.top, rcClient.bottom ); hChild = GetDlgItem(hwnd, ID_CHILD_GFX); @@ -285,7 +285,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM l attr.type=attr_cursor; // TODO attr.u.num=gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(w)); if(!navit_set_attr(gui->nav, &attr)) { - dbg(0, "Failed to set attr_cursor\n"); + dbg(lvl_error, "Failed to set attr_cursor\n"); } return 0; } @@ -298,7 +298,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM l // attr.u.num=gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(w)); attr.u.num = 0; // TODO if(!navit_set_attr(gui->nav, &attr)) { - dbg(0, "Failed to set attr_orientation\n"); + dbg(lvl_error, "Failed to set attr_orientation\n"); } return 0; } diff --git a/navit/gui/win32/win32_gui_destination.c b/navit/gui/win32/win32_gui_destination.c index a9465c9a0..196bf7298 100644 --- a/navit/gui/win32/win32_gui_destination.c +++ b/navit/gui/win32/win32_gui_destination.c @@ -200,7 +200,7 @@ static void notify_textchange(struct datawindow_priv *datawindow, int param1, in } break; default: - dbg(0, "Unhandled search type"); + dbg(lvl_error, "Unhandled search type"); } lvI.iItem = listIndex; @@ -212,7 +212,7 @@ static void notify_textchange(struct datawindow_priv *datawindow, int param1, in (void)ListView_InsertItem(datawindow->hwndList, &lvI); ListView_SetItemText(datawindow->hwndList, listIndex, 1, tcharBuffer); g_free(tcharBuffer); - dbg(0,"%s\n", res->country->name); + dbg(lvl_error,"%s\n", res->country->name); listIndex++; } } @@ -307,7 +307,7 @@ BOOL register_destination_window() if (!RegisterClass(&wc)) { - dbg(0, "Window Registration Failed!\n"); + dbg(lvl_error, "Window Registration Failed!\n"); return FALSE; } return TRUE; @@ -339,7 +339,7 @@ HANDLE create_destination_window( struct navit *nav ) if (this_->hwnd == NULL) { - dbg(0, "Window Creation Failed!\n"); + dbg(lvl_error, "Window Creation Failed!\n"); return 0; } -- cgit v1.2.1