From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: Re: hyperv/netvsc: Delete two error messages for a failed memory allocation in netvsc_init_buf() Date: Mon, 15 Jan 2018 10:00:11 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: KY Srinivasan , Stephen Hemminger , LKML , kernel-janitors@vger.kernel.org To: Haiyang Zhang , devel@linuxdriverproject.org, netdev@vger.kernel.org Return-path: In-Reply-To: Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org > These messages are not displayed anywhere else: > "unable to allocate receive buffer of size %u\n" > "unable to allocate send buffer of size %u\n", > > After set ret = -ENOMEM; and cleanup, we won't know which buffer allocation failed without the error message. How do you think about to achieve the distinction for these buffers by any other means? Can a detailed function call stack dump be appropriate? > So please do not remove these messages. Would you dare to adjust this function implementation in any other ways? Regards, Markus