Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/dev In fbconnect(), append ' (console)' to pri...



details:   https://anonhg.NetBSD.org/src/rev/accf04855fb5
branches:  trunk
changeset: 474987:accf04855fb5
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Jul 28 17:13:54 1999 +0000

description:
In fbconnect(), append ' (console)' to printed message if called for
the console framebuffer at attach time.

diffstat:

 sys/arch/pmax/dev/fb.c |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 2f6bc28c9df7 -r accf04855fb5 sys/arch/pmax/dev/fb.c
--- a/sys/arch/pmax/dev/fb.c    Wed Jul 28 15:38:46 1999 +0000
+++ b/sys/arch/pmax/dev/fb.c    Wed Jul 28 17:13:54 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fb.c,v 1.26 1999/07/25 22:50:28 ad Exp $       */
+/*     $NetBSD: fb.c,v 1.27 1999/07/28 17:13:54 ad Exp $       */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -197,6 +197,8 @@
        struct fbinfo *info;
        int console;
 {
+       char *cstr;
+       
        /*
         * If this is the first frame buffer we've seen, pass it to rcons.
         */
@@ -208,11 +210,15 @@
 #if NRASTERCONSOLE > 0
                /*XXX*/ cn_in_dev = cn_tab->cn_dev; /*XXX*/ /* FIXME */
                rcons_connect (info);
+       } else {
+               cstr = (info == &fbdevs[0].fd_info ? " (console)" : "");
+#else
+       } else {
+               cstr = "";
 #endif  /* NRASTERCONSOLE */
-       } else 
                printf(": %dx%dx%d%s", info->fi_type.fb_width, 
-                   info->fi_type.fb_height, info->fi_type.fb_depth, 
-                   (console ? " (console)" : ""));
+                   info->fi_type.fb_height, info->fi_type.fb_depth, cstr);
+       }
 }
 
 



Home | Main Index | Thread Index | Old Index