From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 580B4C49ED6 for ; Wed, 11 Sep 2019 14:23:07 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2CBDA2075C for ; Wed, 11 Sep 2019 14:23:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2CBDA2075C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=i2se.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CB35A22253; Wed, 11 Sep 2019 14:23:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W+bLp3P5QnOV; Wed, 11 Sep 2019 14:23:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id CDB0C203FE; Wed, 11 Sep 2019 14:23:03 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 5AACC1BF295 for ; Wed, 11 Sep 2019 14:23:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5068585F35 for ; Wed, 11 Sep 2019 14:23:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZOeIgrkf_yCl for ; Wed, 11 Sep 2019 14:23:00 +0000 (UTC) X-Greylist: delayed 00:05:14 by SQLgrey-1.7.6 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 18D5F85F31 for ; Wed, 11 Sep 2019 14:22:59 +0000 (UTC) Received: from [192.168.178.51] ([109.104.36.78]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MD9Kj-1hz0sQ1dR3-0099ZC; Wed, 11 Sep 2019 16:17:27 +0200 Subject: Re: [PATCH] staging: vhciq_core: replace snprintf with scnprintf To: Rohit Sarkar , Eric Anholt , Nicolas Saenz Julienne References: <20190911135112.GA5569@SARKAR> From: Stefan Wahren Message-ID: <7bf3c74d-e690-1ef1-dd74-ac98667e42ef@i2se.com> Date: Wed, 11 Sep 2019 16:17:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190911135112.GA5569@SARKAR> Content-Language: en-US X-Provags-ID: V03:K1:uA7A4z8RtLe6psHsb2WmUkXx0EoIQhDKSOGnfwLT+4O0T9y7af7 0YhigydzRBiLVJDONmGQmX1yst8TkCsS5Mp+aIWcwJfTEpepijrLHxd6a5hFdyCDjryOp3T 4PMjI2bqqQMKR3ycFPeEuDCcUSqiP8X9nTQEA9TbhYIvAWBP3S3BDnEpE34t3r8elKw4EUc 127dIrcGjezBVfjhKBE0g== X-UI-Out-Filterresults: notjunk:1;V03:K0:UFZGbex87RI=:OkPuTziDeN8q/VXJm/I4XR 4mF0fKVP62SP9lyEF8LJZE1RteKKP7Ytfu4MlYA9pEosQ9bWHKmjwGg4F4uJxIzYnJUMIrnKA D1XC3OqeNs1y9o2x9tmzhRIdFyeHnMtNnv1PnccqRlpo/qUXwjUsIUMw7+H2z051wrwcrDlDt IVYf6+DKlkYrHdj8kFgyjHB6UmLw91DHXr1ax1+5npKBnUqdxhFI6JJD2XiA+M8vVRHH3xfi+ Z603PiVzDCAajh/5ykCysUc4T5+mPhqhk4efykMEaCwdMDUR0Q4pE3oCONolyqTisHE9iy14g la2kALyX3bfac41ZES6jylR5j1l+15FVaxzhppxN8nKSlYJLKqKGJ7dwCXYAsbctzinSyt4wa aUeK0HC446XGwzeSkYqO6DSPqA+pcNbAkbNQOwlbVZVgsMLHRqw2yrvwUzCJksEa4EIkpGG7z sAR3awIDqPqJbFPIrbrHtWi/aAWbDJZZSJ/5+XgeK6jv0wO4wRW33xvE0PZ6Y8tZNH8o+C+8Z MvMb1tG52kYJcAfHtoH3eLBW+Hpcq8g4j1KX3dT0toYA/vXF+jIQgBsVGvZPIkvbVG69Siq8O erhevHpop/ARdLSMI9qPLleJvqzGoLZUl4T2dFRyVrFnoEPC9HEOSA1NLEmhf68olq678Vu67 OSE5fz5YhovZ0o6zMqJuMIVUb6LIgaXaI3V0s0eUhdPZo8NGdzF3yWPL2Z1/fimq//YFPUg6e LP17uRYCu3xdGzSfSR9JPxSjhYq4ty9nG+RxNaWy1aE0OuRBnOTb97n6kMxb0dbKg0yMyJAV5 dFYT1e/NLbSnCe4HtvZfit3D/wg+ByTC4ORSsmWCo9bncx/g6ac9waFNDG0cquABM3hhIajzg ihk3zmjLjgL1Uh2oDY1ODbdgAJUDJ8DV9L8wXQrY0= X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Stefan Wahren Cc: devel@driverdev.osuosl.org, Greg Kroah-Hartman , kernel-janitors@vger.kernel.org, =?UTF-8?Q?Tobias_B=c3=bcttner?= , linux-rpi-kernel@lists.infradead.org, Dominic Braun Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" Hi Rohit, On 11.09.19 15:51, Rohit Sarkar wrote: > When the number of bytes to be printed exceeds the limit snprintf > returns the number of bytes that would have been printed (if there was > no truncation). This might cause issues, hence use scnprintf which > returns the actual number of bytes printed to buffer always > > Signed-off-by: Rohit Sarkar thanks for your patch. Did you test your change on the Raspberry Pi? _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel