[{"id":1736627,"web_url":"http://patchwork.ozlabs.org/comment/1736627/","msgid":"<CAEUhbmWgFoekmdedTXVWcZGdGRUsG_zyy+36aCGKJ_4uKSXH6Q@mail.gmail.com>","list_archive_url":null,"date":"2017-08-02T22:54:11","subject":"Re: [U-Boot] [PATCH v2 1/2] dm: core: Drop use of strlcpy()","submitter":{"id":64981,"url":"http://patchwork.ozlabs.org/api/people/64981/","name":"Bin Meng","email":"bmeng.cn@gmail.com"},"content":"On Thu, Aug 3, 2017 at 2:12 AM, Simon Glass <sjg@chromium.org> wrote:\n> We can use printf() to limit the string width. Adjust the code to do this\n> instead of using strlcpy() which is a bit clumbsy.\n>\n> Signed-off-by: Simon Glass <sjg@chromium.org>\n> ---\n>\n> Changes in v2:\n> - Add new patch to drop use of strlcpy()\n>\n>  drivers/core/dump.c | 6 ++----\n>  1 file changed, 2 insertions(+), 4 deletions(-)\n>\n\nReviewed-by: Bin Meng <bmeng.cn@gmail.com>\nTested-by: Bin Meng <bmeng.cn@gmail.com>","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"fX1VfICp\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xN7mD01yPz9s8V\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  3 Aug 2017 08:54:19 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 6DE40C21EE0; Wed,  2 Aug 2017 22:54:15 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A12AAC21C51;\n\tWed,  2 Aug 2017 22:54:13 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 48EFDC21C51; Wed,  2 Aug 2017 22:54:12 +0000 (UTC)","from mail-wm0-f65.google.com (mail-wm0-f65.google.com\n\t[74.125.82.65])\n\tby lists.denx.de (Postfix) with ESMTPS id D8DBDC21C2F\n\tfor <u-boot@lists.denx.de>; Wed,  2 Aug 2017 22:54:11 +0000 (UTC)","by mail-wm0-f65.google.com with SMTP id y206so173281wmd.5\n\tfor <u-boot@lists.denx.de>; Wed, 02 Aug 2017 15:54:11 -0700 (PDT)","by 10.223.135.121 with HTTP; Wed, 2 Aug 2017 15:54:11 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=mime-version:in-reply-to:references:from:date:message-id:subject:to\n\t:cc; bh=hq/ymUykP29t39DHWuX4/4D4syMz1FqzpXxC/aV5Tsw=;\n\tb=fX1VfICp3FU303SJXHPz7hZUa57cgfpGVTBSO7nl7Kc785cavWtzSbyr2kfIdaMwJw\n\tXy7BCIu+FXvlpN4MqatNG66EF4A0U7RCJVb2QHBLuYYyAtl1I5eHb1QJrQ3UfpBS75v2\n\tt3OPHVv8EeBj76VXHI6rOjbMGfudV6biiX13zivittl6F0AKVjYfxX/RbCjSDDOaMO9O\n\tdbI+tg3sBxkZsCb+z3yIZ2oPfSJ5zkpgbe/XiQC+VcekYsDlnVhwsix1FfESxNJy+B5r\n\tFoePhSQBVJcXh+vR4ku8o8oieWSj4Ot94ejFSoUxZUc0vBVsg0RK1U2o/pc6J4jpRfi1\n\tLwQg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc;\n\tbh=hq/ymUykP29t39DHWuX4/4D4syMz1FqzpXxC/aV5Tsw=;\n\tb=SU1Uc9oMmOl5e6YgFkxue1MKs8BlAPOBLtXoGDGzr0xN5ljCMnOIJW6wulVdFYSlAp\n\t48wMNFOkm5X5UxPEukrGXj8UnLuR0oGmklosQdA0REi6ToPzIj7BdlBiTB458ZR5b0tx\n\tYqaepftptHv1jZmfvi+pTHiLpyGmx+41Si3SDvRp39eBQlcSZoB4C0jsSM1THEcrVli5\n\t7oQtwijtWwovX0nhMewoXMG1EVB3jJrTahcyft+Mib61CgLtY32MWg4b1ZnqME83gFWk\n\t/Um1UwguMC+EIRm63oLog7BesIQtrL3GW0bTDKA64Wk5v4+dXcxavc3rrsKVdDphw2HT\n\toj9A==","X-Gm-Message-State":"AIVw110AHhj5qbGnSYAoCP4wyqmFCLs3wLnxgXIruQCNkOMig4+0oZht\n\tiDn7F9BYEYlVaoVJyxGqQCw0apW9cg==","X-Received":"by 10.28.130.133 with SMTP id e127mr5072334wmd.123.1501714451572;\n\tWed, 02 Aug 2017 15:54:11 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<20170802181202.52645-1-sjg@chromium.org>","References":"<20170802181202.52645-1-sjg@chromium.org>","From":"Bin Meng <bmeng.cn@gmail.com>","Date":"Thu, 3 Aug 2017 06:54:11 +0800","Message-ID":"<CAEUhbmWgFoekmdedTXVWcZGdGRUsG_zyy+36aCGKJ_4uKSXH6Q@mail.gmail.com>","To":"Simon Glass <sjg@chromium.org>","Cc":"U-Boot Mailing List <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>","Subject":"Re: [U-Boot] [PATCH v2 1/2] dm: core: Drop use of strlcpy()","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"}},{"id":1766894,"web_url":"http://patchwork.ozlabs.org/comment/1766894/","msgid":"<CAPnjgZ32kJcsGY9P_O_k=W1bhge+u8aTHbGmPTXTC7x6zhwwEg@mail.gmail.com>","list_archive_url":null,"date":"2017-09-12T10:54:40","subject":"Re: [U-Boot] [PATCH v2 1/2] dm: core: Drop use of strlcpy()","submitter":{"id":12501,"url":"http://patchwork.ozlabs.org/api/people/12501/","name":"Simon Glass","email":"sjg@google.com"},"content":"On Thu, Aug 3, 2017 at 2:12 AM, Simon Glass <sjg@chromium.org> wrote:\n> We can use printf() to limit the string width. Adjust the code to do this\n> instead of using strlcpy() which is a bit clumbsy.\n>\n> Signed-off-by: Simon Glass <sjg@chromium.org>\n> ---\n>\n> Changes in v2:\n> - Add new patch to drop use of strlcpy()\n>\n>  drivers/core/dump.c | 6 ++----\n>  1 file changed, 2 insertions(+), 4 deletions(-)\n>\n\nReviewed-by: Bin Meng <bmeng.cn@gmail.com>\nTested-by: Bin Meng <bmeng.cn@gmail.com>\n\nApplied to u-boot-dm, thanks!","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"vRp7RfV+\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xs24l2Hyzz9s7g\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 21:04:55 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 0B314C2212F; Tue, 12 Sep 2017 10:58:17 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id B42BFC22075;\n\tTue, 12 Sep 2017 10:55:04 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 6E8AAC2208A; Tue, 12 Sep 2017 10:54:50 +0000 (UTC)","from mail-qk0-f179.google.com (mail-qk0-f179.google.com\n\t[209.85.220.179])\n\tby lists.denx.de (Postfix) with ESMTPS id 50EEAC22057\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 10:54:44 +0000 (UTC)","by mail-qk0-f179.google.com with SMTP id z143so24108189qkb.3\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 03:54:44 -0700 (PDT)","from 480794996271 named unknown by gmailapi.google.com with\n\tHTTPREST; Tue, 12 Sep 2017 03:54:40 -0700"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID,\n\tUNPARSEABLE_RELAY\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=mime-version:sender:from:in-reply-to:references:date:message-id\n\t:subject:to:cc;\n\tbh=HGVUMGkaTafuDExHCXQ7/SclJUG/fYSk6zGZZ8f/400=;\n\tb=vRp7RfV+gPhzg9BFsydXN3Ee7PRjtqqFldV2zHlhmXRq9k4VJJ9JI8NPnvTLnTPJe6\n\tAJ87DLsd+UAUzKXnDsbnUQYIF4Sw5yBb/XLQeuTlqQXRXiIGOyany/OmE5ktrM3EmPSq\n\tO3r3ntj3U2VS98VvgItJ8RF/iDNuTGsFqd8o1nBJ4qj/2Ww707ugXihGbZLVxGRfEj5o\n\t3BJ0p0p/lotb4GsoUS+bLz2spszpLy3TAKANNHqou0TSkKA9zPKmmIxqKMAmF5ZUCSXt\n\tXMNRb9JvpLRE18g0w2UWpRNjdvcDQgK8Mt+ZHGUNq959UBxo1NL+zVDdD0IkLeJv05n4\n\teKJw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:sender:from:in-reply-to:references\n\t:date:message-id:subject:to:cc;\n\tbh=HGVUMGkaTafuDExHCXQ7/SclJUG/fYSk6zGZZ8f/400=;\n\tb=jf7Lr4E3+RWIUqfHql7ORSQlHmDb7wJi3+ocfMPH1c/SgZARCueQQhIqkgqacQntfh\n\t2Tq7XP2SfB8AQFGfmC4SKNJsS49ZzZK56LwJPy8U45U9ckLJD3iDuh8KgLlht7rD4ytQ\n\tHmdgp0sVbfjMpsKtESlnljFk0sFHv2RLaqy9t5DicLjyRIZRPXsFq4dS8Qdnz/LXntEE\n\t5ROc8RxZtL0es02cXVUOkevLJ4ZzR6rwl540q3u5jnIsma/LwruKCS++MYRKzDTplYtu\n\tN9pemD71lJH3LXD+RobHL6dKFLfrcZrIfdYvqCTeqP6/DjaMBt46W7aUX5Twwwk8/vgM\n\tTriA==","X-Gm-Message-State":"AHPjjUjhgVOQJDF0z5bFr1Nbh4TOwMWrpfHQZFenl2ttXTb7Wh3ls4h2\n\tb33AdDUABciEfFbG7mPahfF8dzKeIFLU5OXkbCl5ag==","X-Google-Smtp-Source":"AOwi7QB6n5HwqKaMyk3JFiWuDlCIhzmD5oiaX9XhdnP0i9CGS8OUFqBM+RCEFbSuyyCfgsky4RurGNZE8Ca6rSiHy4E=","X-Received":"by 10.55.76.205 with SMTP id z196mr20039811qka.252.1505213683085;\n\tTue, 12 Sep 2017 03:54:43 -0700 (PDT)","MIME-Version":"1.0","From":"sjg@google.com","In-Reply-To":"<CAEUhbmWgFoekmdedTXVWcZGdGRUsG_zyy+36aCGKJ_4uKSXH6Q@mail.gmail.com>","References":"<CAEUhbmWgFoekmdedTXVWcZGdGRUsG_zyy+36aCGKJ_4uKSXH6Q@mail.gmail.com>\n\t<20170802181202.52645-1-sjg@chromium.org>","Date":"Tue, 12 Sep 2017 03:54:40 -0700","X-Google-Sender-Auth":"beFwntP_sk5GNX6H3IKQaZuesQ8","Message-ID":"<CAPnjgZ32kJcsGY9P_O_k=W1bhge+u8aTHbGmPTXTC7x6zhwwEg@mail.gmail.com>","To":"Bin Meng <bmeng.cn@gmail.com>","Cc":"U-Boot Mailing List <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>","Subject":"Re: [U-Boot] [PATCH v2 1/2] dm: core: Drop use of strlcpy()","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"}}]