Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753689AbbGXBkn (ORCPT ); Thu, 23 Jul 2015 21:40:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:54200 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753212AbbGXBkl (ORCPT ); Thu, 23 Jul 2015 21:40:41 -0400 Date: Thu, 23 Jul 2015 18:35:44 -0700 From: Greg Kroah-Hartman To: Peter Hurley Cc: Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH 2/7] tty: core: Add tty_debug() for printk(KERN_DEBUG) messages Message-ID: <20150724013544.GA13905@kroah.com> References: <1436755753-7746-1-git-send-email-peter@hurleysoftware.com> <1436755753-7746-3-git-send-email-peter@hurleysoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436755753-7746-3-git-send-email-peter@hurleysoftware.com> User-Agent: Mutt/1.5.23+102 (2ca89bed6448) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1021 Lines: 26 On Sun, Jul 12, 2015 at 10:49:08PM -0400, Peter Hurley wrote: > Introduce tty_debug() macro to output uniform debug information for > tty core debug messages (function name and tty name). > > Note: printk(KERN_DEBUG) is retained here over pr_debug() since > messages can be enabled in non-DEBUG builds. But pr_debug() is the "standard" way to enable/disable debugging messages, so I'd really like to see that be used here. Even better, this is a tty device, so it should be using dev_dbg(), which gives us tons of good information built-in for the tty and can properly be parsed by userspace tools to know exactly what device caused what message at what point in time. So I'll take this for now, but moving it to use dev_dbg() would be best eventually. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/