Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2017 21:23:31 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        fire crow <fire@firecrow.com>
Cc:        freebsd-drivers@freebsd.org
Subject:   Re: Logging information from inside fb/fb.c
Message-ID:  <CANCZdfrVKG2Z_Uo0i1esyAiHHqhgzz29Nea0Zyp7eB3D=kiLNQ@mail.gmail.com>
In-Reply-To: <CAH=cS8GFed4Q%2BDDur-M48xxRE0AmFi_M4yB1Pb8OH%2BehGuuoVQ@mail.gmail.com>
References:  <CAH=cS8GzHSLqmTNP_vkUj7SQHVWd=2F=PUrZkbXZ1P06nR9J4A@mail.gmail.com> <CAH=cS8F2WbRy8iMWk2xsVvfAruDW=xQURo0dF9xTnPx_iwRrAA@mail.gmail.com> <CAH=cS8HedJcE33UJZF92aw0B3oB=ao6O0ijuF_s7wDni6j05xw@mail.gmail.com> <CAH=cS8Eyykdpxq%2B3s9aAP25X2THv_P2VVB14tfd6U3%2BsaK4y2g@mail.gmail.com> <CAH=cS8HGEa7ub_10iegTre_Ln40%2BE2zoCuzZxR6qxTZFLnGNQw@mail.gmail.com> <CAH=cS8G1VrxkkaTjT2x2xW=e6WG8W4tf=utECW%2Bfcp9_bZf0NA@mail.gmail.com> <CAH=cS8GFed4Q%2BDDur-M48xxRE0AmFi_M4yB1Pb8OH%2BehGuuoVQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 22, 2017 8:35 PM, "fire crow" <fire@firecrow.com> wrote:

Hi,
I'm trying to log infirmation about video devices in the `vid_register`
function in `sys/dev/fb/fb.c` and it appears that using `uprintf` is
causing a kernel panic. Is there another logging facility I can use?


Dtrace? Printf may also work better if there is no controlling terminal...
But the panic may be due to recursion into the driver. Try a serial or null
console.

Warner


Thanks
~fire
_______________________________________________
freebsd-drivers@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-drivers
To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrVKG2Z_Uo0i1esyAiHHqhgzz29Nea0Zyp7eB3D=kiLNQ>