From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424817AbdD3KKk (ORCPT ); Sun, 30 Apr 2017 06:10:40 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:35557 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S939871AbdD3KKb (ORCPT ); Sun, 30 Apr 2017 06:10:31 -0400 From: Dhiru Kholia To: LKML Cc: Ian Abbott , H Hartley Sweeten , Joe Perches Subject: [PATCH v2 1/1] staging: comedi: use __func__ instead of hardcoded function name Date: Sun, 30 Apr 2017 15:40:24 +0530 Message-Id: <1493547024-10962-1-git-send-email-dhiru.kholia@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This coding style issue was found by checkpatch.pl script. Using __func__ instead of hardcoded function name should help in future refactoring of this code. This patch also uses a more common logging format. Signed-off-by: Dhiru Kholia --- drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/quatech_daqp_cs.c b/drivers/staging/comedi/drivers/quatech_daqp_cs.c index 802f51e..6df1171 100644 --- a/drivers/staging/comedi/drivers/quatech_daqp_cs.c +++ b/drivers/staging/comedi/drivers/quatech_daqp_cs.c @@ -248,7 +248,7 @@ static irqreturn_t daqp_interrupt(int irq, void *dev_id) if (loop_limit <= 0) { dev_warn(dev->class_dev, - "loop_limit reached in daqp_interrupt()\n"); + "%s: loop limit reached\n", __func__); s->async->events |= COMEDI_CB_ERROR; } -- 2.7.4