Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86246C433FE for ; Wed, 30 Nov 2022 10:39:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236100AbiK3Kje (ORCPT ); Wed, 30 Nov 2022 05:39:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbiK3Kja (ORCPT ); Wed, 30 Nov 2022 05:39:30 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3199C25C7E for ; Wed, 30 Nov 2022 02:39:24 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 735E91FD76; Wed, 30 Nov 2022 10:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1669804763; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BD5P4rqKVSHXwvphyh0ZQGrrZfEH7pCmfr1WY4JfkKQ=; b=QtE5mhbhBSMvV88KKHxqcFqFGuVgBPlyuoD1LKQe56OiXlWKyXK/8e5c3Tv/bcKMECs33O FU0tHxTIvsVus4m59IwBkiEIjhscNnh8PjQ/qsvqrlUr5eNXrYsf2gK0fYJQb+NMoXTE3a a78ZXaWa5JF4zhTdGLxDpM2bm/ftwUU= Received: from suse.cz (unknown [10.100.208.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 444692C149; Wed, 30 Nov 2022 10:39:23 +0000 (UTC) Date: Wed, 30 Nov 2022 11:39:22 +0100 From: Petr Mladek To: yang.yang29@zte.com.cn Cc: senozhatsky@chromium.org, rostedt@goodmis.org, john.ogness@linutronix.de, linux-kernel@vger.kernel.org, xu.panda@zte.com.cn Subject: Re: [PATCH linux-next] printk: use strscpy() to instead of strlcpy() Message-ID: References: <202211301601416229001@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202211301601416229001@zte.com.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2022-11-30 16:01:41, yang.yang29@zte.com.cn wrote: > From: Xu Panda > > The implementation of strscpy() is more robust and safer. > That's now the recommended way to copy NUL terminated strings. > > Signed-off-by: Xu Panda > Signed-off-by: Yang Yang Reviewed-by: Petr Mladek Best Regards, Petr