Received: by 10.213.65.68 with SMTP id h4csp198401imn; Fri, 23 Mar 2018 02:41:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELts8rKz8uwEWcompfO79eGBsVRzb5yq2nffP3VnbrqFjqhMUH3h4k9TVzUhW9DGHY+mpNql X-Received: by 10.99.184.1 with SMTP id p1mr17762115pge.96.1521798074871; Fri, 23 Mar 2018 02:41:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521798074; cv=none; d=google.com; s=arc-20160816; b=ah61eNf+K8VujxL0yziVbyMhxUIwnmhoW8tj2DKvcbqQ/OJ47i6ALb8XapDwW+Ui6D IfEzX5TmrZcc5/d2xrAo3aSyYMEpsJxxysnXEq1yJcczWAtxcfYCVW0IjCYGBP5Egtjl 8YnUosjOYj8t5lyf61m8ZJNBBnGPxtntTXuP7/y50HqNBrdqZ6DpazPP480eg8efo+GX xqOa/HR5HZE9ne0QmYqNyRCsEjW9MYs9lqazPgdmCys3v/iPUMNRB4wFJZ1FAfF7An9c sVcRYXHco3Zf+hg0fprS3I1Fhi8L411iTJcI42x7Nfcu6UQ72EbylzU4M+K87ivTMapF +idg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=6RULoPC6mqbvWWNEfcUPTg7F4yVy9zZapwCROlXDbsw=; b=OLP87zdrSZ9UUK+VYDc8mc88smAUZOWRumx3U0ft23seXr9+8//RM/ZYkVUJZygC93 tLMdWZRqe87NEKiC2lYG28ORk3JM6/M6a/mTQJTzgfiAXVdxb3nlM0HOoGp24x1ZZUqu kKqfp0Ch89MccCQol0tWXZnFWz+RHEWD8soi0vYCGAKBWL8q0c4fMqto29S6z9kxZkiE hhTSSyvetjVOU120Kv7gR25jLx5uf2enrr8dfbunqcL+XFhAlg9x36eADUNoIFCAIEXS Z6OGBxuvuBoQm4XMNlZmS9UdTNbwXj4X5CdDLpbcdQM9aAlDMOD+hgGHC/ipSNjq0Z7Q ukcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si6398071pfr.368.2018.03.23.02.41.00; Fri, 23 Mar 2018 02:41:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227AbeCWJkG (ORCPT + 99 others); Fri, 23 Mar 2018 05:40:06 -0400 Received: from vegas.theobroma-systems.com ([144.76.126.164]:38820 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752186AbeCWJkE (ORCPT ); Fri, 23 Mar 2018 05:40:04 -0400 Received: from [86.59.122.178] (port=63564 helo=ju27.lan) by mail.theobroma-systems.com with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ezJB3-0007DS-Vt; Fri, 23 Mar 2018 10:40:02 +0100 Subject: Re: [PATCH v3 0/1] can: ucan: add driver for Theobroma Systems UCAN devices To: Wolfgang Grandegger Cc: Martin Elshuber , Philipp Tomsich , Marc Kleine-Budde , linux-can@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180322135338.60923-1-jakob.unterwurzacher@theobroma-systems.com> From: Jakob Unterwurzacher Message-ID: <7e818d10-3410-b144-9cfb-c58a9945a8b1@theobroma-systems.com> Date: Fri, 23 Mar 2018 10:40:01 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.03.18 09:32, Wolfgang Grandegger wrote: >> * add __func__ to all errors and warnings, and to info where it made sense > > The final output messages in the driver should especially be useful for > the end user... and not the developer! This is also true for the > function names. You already use more "__func__" than all other CAN > drivers together. Just my opinion! The idea was to make it clear which driver printed the message. In my opinion, this is a problem: > drivers/net/can/usb$ git grep "No memory left for USB buffer" > ems_usb.c: netdev_err(netdev, "No memory left for USB buffer\n"); > ems_usb.c: netdev_err(netdev, "No memory left for USB buffer\n"); > esd_usb2.c: "No memory left for USB buffer\n"); > esd_usb2.c: netdev_err(netdev, "No memory left for USB buffer\n"); > gs_usb.c: netdev_err(netdev, "No memory left for USB buffer\n"); > gs_usb.c: "No memory left for USB buffer\n"); > kvaser_usb.c: "No memory left for USB buffer\n"); > mcba_usb.c: netdev_err(netdev, "No memory left for USB buffer\n"); > usb_8dev.c: netdev_err(netdev, "No memory left for USB buffer\n"); > usb_8dev.c: netdev_err(netdev, "No memory left for USB buffer\n"); But I'm open to other suggestions (use a fixed "ucan: " prefix?) or to drop it entirely if you think it is not worth it. Thanks for the feedback, Jakob