Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xorg-server/dist/hw/sun Put probed framebuffe...



details:   https://anonhg.NetBSD.org/xsrc/rev/e55ee8a44270
branches:  trunk
changeset: 10539:e55ee8a44270
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Aug 09 11:51:31 2020 +0000

description:
Put probed framebuffer info to a log file by default.

diffstat:

 external/mit/xorg-server/dist/hw/sun/sunInit.c |  15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 4f2defa763b8 -r e55ee8a44270 external/mit/xorg-server/dist/hw/sun/sunInit.c
--- a/external/mit/xorg-server/dist/hw/sun/sunInit.c    Sun Aug 09 07:35:42 2020 +0000
+++ b/external/mit/xorg-server/dist/hw/sun/sunInit.c    Sun Aug 09 11:51:31 2020 +0000
@@ -307,6 +307,11 @@
            }
        }
        if (ret) {
+           int verb = 1;
+
+           if (sunFbInfo)
+               verb = -1;
+
            devFbUsed = TRUE;
            if (fbattr) {
                if (fbattr->fbtype.fb_type >= XFBTYPE_LASTPLUSONE) {
@@ -325,16 +330,14 @@
                    if (sunFbData[fbattr->emu_types[_i]].init) {
                        sunFbs[screen].info.fb_type = fbattr->emu_types[_i];
                        ret = TRUE;
-                       if (sunFbInfo)
-                           ErrorF ("%s is emulating a %s\n", device,
-                               sunFbData[fbattr->fbtype.fb_type].name);
+                       LogMessageVerb(X_INFO, verb, "%s is emulating a %s\n",
+                           device, sunFbData[fbattr->fbtype.fb_type].name);
                        break;
                    }
                }
            }
-           if (sunFbInfo)
-               ErrorF ("%s is really a %s\n", device,
-                   sunFbData[fbattr ? fbattr->fbtype.fb_type : sunFbs[screen].info.fb_type].name);
+           LogMessageVerb(X_INFO, verb, "%s is really a %s\n", device,
+               sunFbData[fbattr ? fbattr->fbtype.fb_type : sunFbs[screen].info.fb_type].name);
        }
     }
     if (!ret)



Home | Main Index | Thread Index | Old Index