From owner-freebsd-drivers@freebsd.org Mon Oct 23 03:23:33 2017 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDAFFE3EE73 for ; Mon, 23 Oct 2017 03:23:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B637E837EE for ; Mon, 23 Oct 2017 03:23:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22b.google.com with SMTP id y15so4361184ita.4 for ; Sun, 22 Oct 2017 20:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=U74sVcDUaexeynsHCgWfU2LV348QllgAX57iW7HmfBQ=; b=TcjhnkLSrMQFpGJLIofmjNl+7oVKWZLeTdtDO0wVU45uQX1vejk9PyHUpoTKqMUTwM OJVdsPtMr3sKClq3vtCDZKxRFFXQHoiLsARgnvl/CBP8j7rluUA7Yva/BIorKMK5/Y5D JNSri7+YvXwhJfgV86nWLxV4Fg9XZvy55MfdsLVx42lzjUSpb7bw3lQGmBZXqMJTuKvO OG6Naxl890e4K2D4wWBiIBKCVshAP5pFUHtxkqes32BaWMbQurTK2P1Ph6axEPLyIL0x z4tzX3ahL3mc+vVPULUjEjA/Q1kroEHOkIc1JtODDku7MQr6K1tnYylFlHO4cWiQeRiU UbFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=U74sVcDUaexeynsHCgWfU2LV348QllgAX57iW7HmfBQ=; b=UJhVKkchebPRfR65fC15wqHboeKM/m3aMVnCH2nAsHBrVd+UQSSE37pl05zUoH1miT V/EwzHeaVhwEWYFAhNdL1Wo69GwEnLgnsrEsGgbujHz0jaOkrdOSicffHqzaOu+o2tu/ U+Un5mnTn1w2buZVnmNM1sOxz96ApEAFRgdBWBOzlNmvZcAhi4oFoJdWg6438iVrrj5B 8ESivp75zFkwSvN8TDoKt9AxvbZwp7ZwIkiCZqCfSbNlexRk6SZPsZoDdH9Xz3u4qZhw kiwT2HXDJcoBGZ0M6bD2HxvjVNJEolJmLTf0lW2LY06ApxSmKW2ajnkgkO7pXQXPluFN 40rA== X-Gm-Message-State: AMCzsaWuwfHO3HV3Vm3g9LZSDox+VieUvVFZIxJGDyavO5jI/fp6PLew Fzukil6afLPMpAunq28lK4nxBYn3JjU2jvRG8C/8YA== X-Google-Smtp-Source: ABhQp+Q5wEkAQnW0oYmCZVYFHRQvbs3PUUQBFLe//mGX2Q+PMV91rxxEmb+pRZmdG7TaSrwoXVgMTlh6nmvPqPEAXds= X-Received: by 10.36.184.5 with SMTP id m5mr8089806ite.69.1508729012714; Sun, 22 Oct 2017 20:23:32 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.57.22 with HTTP; Sun, 22 Oct 2017 20:23:31 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:4cab:eabf:5164:1d5] Received: by 10.79.57.22 with HTTP; Sun, 22 Oct 2017 20:23:31 -0700 (PDT) In-Reply-To: References: From: Warner Losh Date: Sun, 22 Oct 2017 21:23:31 -0600 X-Google-Sender-Auth: E61lkwtguWYiyuzXBbU9JU7yvH8 Message-ID: Subject: Re: Logging information from inside fb/fb.c To: fire crow Cc: freebsd-drivers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2017 03:23:34 -0000 On Oct 22, 2017 8:35 PM, "fire crow" 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"