Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2953732imw; Sun, 10 Jul 2022 20:48:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vKyAkA/43R8niA9J/D9XHWnw/z0h+vCMAfCqiLHzm2sMI04Q5WFXS+eMfWjQYv9Tky/dfd X-Received: by 2002:a17:907:60cb:b0:726:a69a:c7a with SMTP id hv11-20020a17090760cb00b00726a69a0c7amr17091858ejc.156.1657511338433; Sun, 10 Jul 2022 20:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657511338; cv=none; d=google.com; s=arc-20160816; b=xrlKJFqOHkDO9n6jTblkQT0nap+MZoVjolZFS3UIh47WGxREeyeShwswSn0aKwDUAL 0GfCoVv2V8d2LWk0lE1TMM69IBIkz/e8I3/OHqDg29J2kmr7BxFHlRNFdkm7vEWMiyS2 YnE7jVcPcimGz8DcizYWq7xPREEovyaX+0nk/FJnKCw8hlfCKRrl05esy7ANUzArmXmo Zl6koXwhHXa9gOifUrluzd7XQNwR+EEJpo/yHfKHh+JXtWtEfcJRS9wjbpx9U4FrQ/Q/ kGKI+seHtyg3olMaZztuwz2SiRHKybmRW0Lyj3C2rrfyuFK6GNwZnxLYU6oImxGN4bmq C+pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NOLqnmsf5iQ2nJ0C267wUaO2VWLlFlLUVAczH6qf7xQ=; b=MJ61ZGM0HCo2vS2rDlM4WIvBX/kGjy6H4mn6+iLmV1dajygyApvGDevQwuauEbOQe9 sqYIoiisjri/Mgwz0Mmke4q/ajJymMORgI0kq5BsUXRGmk2e3PmK1ROAV1Lh/8+8EzT/ Bp+kXDAa41tkyNWGzHF+9CJcRgknL+zm5Oia2CQqo/1cIZjKmO28Fwjex9D3J4Y2RtA8 DL3JLyzYadc64YUNAUjNYXXuOYz8CCt3gJX4YmJAtdEsY0qIZx6hWq/4CP66dVmJ1kHP htIy4DIVqk84OCtzdazYprGPUWnf10KYrhbNOwzL/3zqmouJ+AuDLfPW5EW8CO++thLx ECuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hywFkzoA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a170906794a00b0072ad02a1b20si10297828ejo.72.2022.07.10.20.48.34; Sun, 10 Jul 2022 20:48:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hywFkzoA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbiGKCxG (ORCPT + 99 others); Sun, 10 Jul 2022 22:53:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiGKCxF (ORCPT ); Sun, 10 Jul 2022 22:53:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 696A9183A8; Sun, 10 Jul 2022 19:53:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F36E8610A5; Mon, 11 Jul 2022 02:53:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07264C3411E; Mon, 11 Jul 2022 02:53:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657507983; bh=PCWoXAlR4NxLTHXg0LrKWX+ks7as6mmpDn6fX/LsNHU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hywFkzoAIkBPJDBfXVkvAObcMXd2FqviNCH/dD4P34ClqDPjfWp2U3b4k6HdRaw3P Xbc/i/wrzaYBnlKavv9BCRAnZ1NganrvYxGA+mkgP3Ewy6L096MKjQWhO/QLEK8jxn 4Z/p3VldcMJSjcXWd3LrTbpyop020gD5uIlSSXXnr91QQeU11Y0BIZqIjDEmtcrDKO 8j9ule6Umk3yel3Le4oYzW6IRgEMq5PZB8NtR9uW8wOyacVgXD4lykuis40gHbaQ6+ Yb8vX0SzNMhb71rn5VTD3UQsnx5XcexEbDSefXz4DwKe5FYa3l0UT7cYpO6c1m9m4R wCokhaeSl4Mgg== Date: Mon, 11 Jul 2022 05:52:58 +0300 From: Jarkko Sakkinen To: Li zeming Cc: dhowells@redhat.com, jmorris@namei.org, serge@hallyn.com, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@nfschina.com Subject: Re: [PATCH] keys/keyring: Fix typo in string Message-ID: References: <20220704025610.3834-1-zeming@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220704025610.3834-1-zeming@nfschina.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 04, 2022 at 10:56:10AM +0800, Li zeming wrote: > Remove the repeated ',' from string > > Signed-off-by: Li zeming > --- > security/keys/keyring.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/security/keys/keyring.c b/security/keys/keyring.c > index 5e6a90760753..c6c47ca9b57d 100644 > --- a/security/keys/keyring.c > +++ b/security/keys/keyring.c > @@ -460,7 +460,7 @@ static int keyring_read_iterator(const void *object, void *data) > struct keyring_read_iterator_context *ctx = data; > const struct key *key = keyring_ptr_to_key(object); > > - kenter("{%s,%d},,{%zu/%zu}", > + kenter("{%s,%d},{%zu/%zu}", > key->type->name, key->serial, ctx->count, ctx->buflen); > > if (ctx->count >= ctx->buflen) > @@ -484,7 +484,7 @@ static long keyring_read(const struct key *keyring, > struct keyring_read_iterator_context ctx; > long ret; > > - kenter("{%d},,%zu", key_serial(keyring), buflen); > + kenter("{%d},%zu", key_serial(keyring), buflen); > > if (buflen & (sizeof(key_serial_t) - 1)) > return -EINVAL; > -- > 2.18.2 > Reviewed-by: Jarkko Sakkinen BR, Jarkko