summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2018-06-30 23:55:19 -0500
committerKevin Brace <kevinbrace@gmx.com>2018-07-09 15:35:30 -0700
commit0a6d7d93acf57bfd8c0005b4a08e6cd054d7a76d (patch)
tree6f071116a490bf48ccdbae1dfb49111cff9fe777 /src
parent09f14ae89073c31118b747b8cd3663d4da9aa170 (diff)
Using __func__ string for debug message function identification
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'src')
-rw-r--r--src/r128_driver.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/r128_driver.c b/src/r128_driver.c
index 4918a0e..4cc95e6 100644
--- a/src/r128_driver.c
+++ b/src/r128_driver.c
@@ -1264,7 +1264,7 @@ Bool R128PreInit(ScrnInfoPtr pScrn, int flags)
R128InfoPtr info;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "R128PreInit\n"));
+ "%s\n", __func__));
if (flags & PROBE_DETECT) {
return TRUE;
@@ -1604,7 +1604,8 @@ Bool R128ScreenInit(SCREEN_INIT_ARGS_DECL)
char *optstr;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "R128ScreenInit %lx %lx\n",
+ "%s %lx %lx\n",
+ __func__,
pScrn->memPhysBase, pScrn->fbOffset));
info->useEXA = FALSE;
#ifdef USE_EXA
@@ -2378,7 +2379,7 @@ static void R128SaveMode(ScrnInfoPtr pScrn, R128SavePtr save)
R128EntPtr pR128Ent = R128EntPriv(pScrn);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "R128SaveMode(%p)\n", save));
+ "%s(%p)\n", __func__, save));
R128SaveCommonRegisters(pScrn, save);
R128SaveCrtcRegisters(pScrn, save);
@@ -2395,7 +2396,7 @@ static void R128SaveMode(ScrnInfoPtr pScrn, R128SavePtr save)
R128SavePalette(pScrn, save);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "R128SaveMode returns %p\n", save));
+ "%s returns %p\n", __func__, save));
}
/* Save everything needed to restore the original VC state. */
@@ -2406,7 +2407,7 @@ static void R128Save(ScrnInfoPtr pScrn)
R128SavePtr save = &info->SavedReg;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "R128Save\n"));
+ "%s\n", __func__));
if (info->FBDev) {
fbdevHWSave(pScrn);
return;
@@ -2450,7 +2451,7 @@ static void R128Restore(ScrnInfoPtr pScrn)
R128SavePtr restore = &info->SavedReg;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "R128Restore\n"));
+ "%s\n", __func__));
if (info->FBDev) {
fbdevHWRestore(pScrn);
return;
@@ -2788,7 +2789,7 @@ Bool R128EnterVT(VT_FUNC_ARGS_DECL)
R128InfoPtr info = R128PTR(pScrn);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "R128EnterVT\n"));
+ "%s\n", __func__));
pScrn->vtSema = TRUE;
if (info->FBDev) {
@@ -2829,7 +2830,7 @@ void R128LeaveVT(VT_FUNC_ARGS_DECL)
R128SavePtr save = &info->ModeReg;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "R128LeaveVT\n"));
+ "%s\n", __func__));
#ifdef R128DRI
if (info->directRenderingEnabled) {
DRILock(pScrn->pScreen, 0);
@@ -2858,7 +2859,7 @@ static Bool R128CloseScreen(CLOSE_SCREEN_ARGS_DECL)
R128InfoPtr info = R128PTR(pScrn);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "R128CloseScreen\n"));
+ "%s\n", __func__));
#ifdef R128DRI
/* Disable direct rendering */
@@ -2908,7 +2909,7 @@ void R128FreeScreen(FREE_SCREEN_ARGS_DECL)
R128InfoPtr info = R128PTR(pScrn);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "R128FreeScreen\n"));
+ "%s\n", __func__));
if (info == NULL)
return;
#ifdef WITH_VGAHW