mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
quieten down windows debug
This commit is contained in:
parent
a5e4bf8220
commit
2db39b1f7d
@ -16,20 +16,25 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _NETSURF_WINDOWS_WINDBG_H_
|
#ifndef NETSURF_WINDOWS_WINDBG_H
|
||||||
#define _NETSURF_WINDOWS_WINDBG_H_
|
#define NETSURF_WINDOWS_WINDBG_H
|
||||||
|
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
|
|
||||||
const char *msg_num_to_name(int msg);
|
const char *msg_num_to_name(int msg);
|
||||||
void win_perror(const char *lpszFunction);
|
void win_perror(const char *lpszFunction);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* log windows message
|
||||||
|
*
|
||||||
|
* log a windows message with symbols converted to human redable
|
||||||
|
*/
|
||||||
#define LOG_WIN_MSG(h, m, w, l) \
|
#define LOG_WIN_MSG(h, m, w, l) \
|
||||||
if (((m) != WM_SETCURSOR) && \
|
if (((m) != WM_SETCURSOR) && \
|
||||||
((m) != WM_MOUSEMOVE) && \
|
((m) != WM_MOUSEMOVE) && \
|
||||||
((m) != WM_NCHITTEST) && \
|
((m) != WM_NCHITTEST) && \
|
||||||
((m) != WM_ENTERIDLE)) \
|
((m) != WM_ENTERIDLE)) \
|
||||||
NSLOG(netsurf, INFO, \
|
NSLOG(netsurf, DEBUG, \
|
||||||
"%s, hwnd %p, w 0x%x, l 0x%Ix", \
|
"%s, hwnd %p, w 0x%x, l 0x%Ix", \
|
||||||
msg_num_to_name(m), h, w, l)
|
msg_num_to_name(m), h, w, l)
|
||||||
|
|
||||||
|
@ -230,7 +230,7 @@ nsws_window_toolbar_command(struct gui_window *gw,
|
|||||||
int identifier,
|
int identifier,
|
||||||
HWND ctrl_window)
|
HWND ctrl_window)
|
||||||
{
|
{
|
||||||
NSLOG(netsurf, INFO,
|
NSLOG(netsurf, DEBUG,
|
||||||
"notification_code %d identifier %d ctrl_window %p",
|
"notification_code %d identifier %d ctrl_window %p",
|
||||||
notification_code,
|
notification_code,
|
||||||
identifier,
|
identifier,
|
||||||
@ -241,39 +241,39 @@ nsws_window_toolbar_command(struct gui_window *gw,
|
|||||||
case IDC_MAIN_URLBAR:
|
case IDC_MAIN_URLBAR:
|
||||||
switch (notification_code) {
|
switch (notification_code) {
|
||||||
case EN_CHANGE:
|
case EN_CHANGE:
|
||||||
NSLOG(netsurf, INFO, "EN_CHANGE");
|
NSLOG(netsurf, DEBUG, "EN_CHANGE");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EN_ERRSPACE:
|
case EN_ERRSPACE:
|
||||||
NSLOG(netsurf, INFO, "EN_ERRSPACE");
|
NSLOG(netsurf, DEBUG, "EN_ERRSPACE");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EN_HSCROLL:
|
case EN_HSCROLL:
|
||||||
NSLOG(netsurf, INFO, "EN_HSCROLL");
|
NSLOG(netsurf, DEBUG, "EN_HSCROLL");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EN_KILLFOCUS:
|
case EN_KILLFOCUS:
|
||||||
NSLOG(netsurf, INFO, "EN_KILLFOCUS");
|
NSLOG(netsurf, DEBUG, "EN_KILLFOCUS");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EN_MAXTEXT:
|
case EN_MAXTEXT:
|
||||||
NSLOG(netsurf, INFO, "EN_MAXTEXT");
|
NSLOG(netsurf, DEBUG, "EN_MAXTEXT");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EN_SETFOCUS:
|
case EN_SETFOCUS:
|
||||||
NSLOG(netsurf, INFO, "EN_SETFOCUS");
|
NSLOG(netsurf, DEBUG, "EN_SETFOCUS");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EN_UPDATE:
|
case EN_UPDATE:
|
||||||
NSLOG(netsurf, INFO, "EN_UPDATE");
|
NSLOG(netsurf, DEBUG, "EN_UPDATE");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EN_VSCROLL:
|
case EN_VSCROLL:
|
||||||
NSLOG(netsurf, INFO, "EN_VSCROLL");
|
NSLOG(netsurf, DEBUG, "EN_VSCROLL");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
NSLOG(netsurf, INFO, "Unknown notification_code");
|
NSLOG(netsurf, DEBUG, "Unknown notification_code");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user