From patchwork Mon Jul 4 02:56:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 12904612 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 45FF1C433EF for ; Mon, 4 Jul 2022 02:56:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbiGDC40 (ORCPT ); Sun, 3 Jul 2022 22:56:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiGDC4Z (ORCPT ); Sun, 3 Jul 2022 22:56:25 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2B22A2C3; Sun, 3 Jul 2022 19:56:25 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 754061E80CCF; Mon, 4 Jul 2022 10:54:31 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zgr4wSerIevz; Mon, 4 Jul 2022 10:54:28 +0800 (CST) Received: from node1.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id C33531E80C90; Mon, 4 Jul 2022 10:54:28 +0800 (CST) From: Li zeming To: dhowells@redhat.com, jarkko@kernel.org, jmorris@namei.org, serge@hallyn.com Cc: keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@nfschina.com, Li zeming Subject: [PATCH] keys/keyring: Fix typo in string Date: Mon, 4 Jul 2022 10:56:10 +0800 Message-Id: <20220704025610.3834-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk List-ID: X-Mailing-List: keyrings@vger.kernel.org Remove the repeated ',' from string Signed-off-by: Li zeming Reviewed-by: Jarkko Sakkinen --- 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;