Commit 759f89aa authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Pointer.c: use __func__ in fprintf

parent e9ee5a00
...@@ -87,7 +87,7 @@ void nxagentChangePointerControl(DeviceIntPtr pDev, PtrCtrl *ctrl) ...@@ -87,7 +87,7 @@ void nxagentChangePointerControl(DeviceIntPtr pDev, PtrCtrl *ctrl)
if (nxagentOption(DeviceControl) == True) if (nxagentOption(DeviceControl) == True)
{ {
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentChangePointerControl: WARNING! Propagating changes to pointer settings.\n"); fprintf(stderr, "%s: WARNING! Propagating changes to pointer settings.\n", __func__);
#endif #endif
XChangePointerControl(nxagentDisplay, True, True, XChangePointerControl(nxagentDisplay, True, True,
...@@ -97,7 +97,7 @@ void nxagentChangePointerControl(DeviceIntPtr pDev, PtrCtrl *ctrl) ...@@ -97,7 +97,7 @@ void nxagentChangePointerControl(DeviceIntPtr pDev, PtrCtrl *ctrl)
} }
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentChangePointerControl: WARNING! Not propagating changes to pointer settings.\n"); fprintf(stderr, "%s: WARNING! Not propagating changes to pointer settings.\n", __func__);
#endif #endif
} }
...@@ -108,7 +108,7 @@ int nxagentPointerProc(DeviceIntPtr pDev, int onoff) ...@@ -108,7 +108,7 @@ int nxagentPointerProc(DeviceIntPtr pDev, int onoff)
case DEVICE_INIT: case DEVICE_INIT:
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentPointerProc: Called for [DEVICE_INIT].\n"); fprintf(stderr, "%s: Called for [DEVICE_INIT].\n", __func__);
#endif #endif
if (NXDisplayError(nxagentDisplay) == 1) if (NXDisplayError(nxagentDisplay) == 1)
...@@ -129,7 +129,7 @@ int nxagentPointerProc(DeviceIntPtr pDev, int onoff) ...@@ -129,7 +129,7 @@ int nxagentPointerProc(DeviceIntPtr pDev, int onoff)
case DEVICE_ON: case DEVICE_ON:
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentPointerProc: Called for [DEVICE_ON].\n"); fprintf(stderr, "%s: Called for [DEVICE_ON].\n", __func__);
#endif #endif
if (NXDisplayError(nxagentDisplay) == 1) if (NXDisplayError(nxagentDisplay) == 1)
...@@ -146,7 +146,7 @@ int nxagentPointerProc(DeviceIntPtr pDev, int onoff) ...@@ -146,7 +146,7 @@ int nxagentPointerProc(DeviceIntPtr pDev, int onoff)
case DEVICE_OFF: case DEVICE_OFF:
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentPointerProc: Called for [DEVICE_OFF].\n"); fprintf(stderr, "%s: Called for [DEVICE_OFF].\n", __func__);
#endif #endif
if (NXDisplayError(nxagentDisplay) == 1) if (NXDisplayError(nxagentDisplay) == 1)
...@@ -160,7 +160,7 @@ int nxagentPointerProc(DeviceIntPtr pDev, int onoff) ...@@ -160,7 +160,7 @@ int nxagentPointerProc(DeviceIntPtr pDev, int onoff)
case DEVICE_CLOSE: case DEVICE_CLOSE:
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentPointerProc: Called for [DEVICE_CLOSE].\n"); fprintf(stderr, "%s: Called for [DEVICE_CLOSE].\n", __func__);
#endif #endif
break; break;
...@@ -174,8 +174,8 @@ void nxagentInitPointerMap(void) ...@@ -174,8 +174,8 @@ void nxagentInitPointerMap(void)
unsigned char pointerMap[MAXBUTTONS]; unsigned char pointerMap[MAXBUTTONS];
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "nxagentInitPointerMap: Going to retrieve the " fprintf(stderr, "%s: Going to retrieve the "
"pointer map from remote display.\n"); "pointer map from remote display.\n", __func__);
#endif #endif
int numButtons = XGetPointerMapping(nxagentDisplay, pointerMap, MAXBUTTONS); int numButtons = XGetPointerMapping(nxagentDisplay, pointerMap, MAXBUTTONS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment