Message ID | 20221018151318.167543-2-tim.gardner@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=LQD2bSCk; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MsHT12J9Kz23kT for <incoming@patchwork.ozlabs.org>; Wed, 19 Oct 2022 02:14:12 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1okoI8-0000ok-Nd; Tue, 18 Oct 2022 15:14:04 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <tim.gardner@canonical.com>) id 1okoI6-0000oL-OS for kernel-team@lists.ubuntu.com; Tue, 18 Oct 2022 15:14:02 +0000 Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id D56CF3F367 for <kernel-team@lists.ubuntu.com>; Tue, 18 Oct 2022 15:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1666106041; bh=tzn1M2JlIbb5wLlY48PTg/IV9RDjw5S1+M7mTCts6qE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=LQD2bSCkH+9huJVkcRkaXJqujPTe0WgxTpg98E2OrnSFRaGuo7J0175BODarVBzc+ Cd0qWpz6/K6PaIqHykGApGlkCVMG02B7Q1NPcPln8IbiS1Tn4IqJBJAhnOaukAsspK 5DQ9iF765LYFMeEDfzollSuHsFXW3PF6Kth762BxOcEZghHaGb7Z9qYL3XU3nIFBSR xjLO5/qa4kaoy2GgSAIOhvrJtjuiQ0nkSwMnkqKM1jqmBEVKYrYRGyV0NpOkPL3aOC aUt2zOdVJcMWl/KuuCyPAibJruqd/RcD77kf7tVGYTNrk1FvHZpDMmire3Kkwi7NwC pBdfYLp2SC7Sw== Received: by mail-pj1-f70.google.com with SMTP id mq15-20020a17090b380f00b0020ad26fa5edso11954239pjb.7 for <kernel-team@lists.ubuntu.com>; Tue, 18 Oct 2022 08:14:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tzn1M2JlIbb5wLlY48PTg/IV9RDjw5S1+M7mTCts6qE=; b=m2UkEgdXsA3iSbaKl0rr2l8Yp6ApI4Rup2fdGuU9hRkhsyIeG8ngbxzNDp4dDYqdlt 5GG8WWks1fpx3WweFK1t99DFbzcBcqnPK6THM+6Buq+wOJLvNsPcvCuPHdJxRjAeOFaJ F1dwA16WpP7mY9wpkiI2inZt08cygGvSIFH6079s8OS0gAzrW/n5htqIf64PrK9zal/g 3uSKCjTWdPdlbqgYjrPUyKnlzYmZjOjcK4qGs4CUQtdMbdYnikAHS8pE5LQ2kbqMjbwD J1EC0++YWlLjGga99nGrM9ISsNtYySnvATnlw9uF5r9vm/UzmTT4uAmSjIvHRRUznaYI +MTQ== X-Gm-Message-State: ACrzQf2QCBNTdhAo4iAse7NrXR0E6tw4HkYCJSVhRg/6ZWbCqDzgSQjc aCCkPzLxR07pDlhiurd8TRuBg2MEzBHDVsZSYBEYPLqKLHe/PZWMUnZsUrtwvqLFYmliiR5ORef QZTS/TdgIPTCt5kEDntXpAwcI3jKXosdKAVdEdEvlaA== X-Received: by 2002:a05:6a00:2446:b0:528:5da9:cc7 with SMTP id d6-20020a056a00244600b005285da90cc7mr3758123pfj.51.1666106039744; Tue, 18 Oct 2022 08:13:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6rxodIppjDjB0G4cNIm5BrgDjjcXAoZFq4tmEuo/tk0v8gchIZs3jDmBxOjsPaU9WLhDRMTQ== X-Received: by 2002:a05:6a00:2446:b0:528:5da9:cc7 with SMTP id d6-20020a056a00244600b005285da90cc7mr3758097pfj.51.1666106039393; Tue, 18 Oct 2022 08:13:59 -0700 (PDT) Received: from localhost.localdomain ([69.163.84.166]) by smtp.gmail.com with ESMTPSA id w11-20020a170902ca0b00b0017f7fa6808csm8840019pld.87.2022.10.18.08.13.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 08:13:58 -0700 (PDT) From: Tim Gardner <tim.gardner@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH][kinetic linux] md: Replace snprintf with scnprintf Date: Tue, 18 Oct 2022 09:13:17 -0600 Message-Id: <20221018151318.167543-2-tim.gardner@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221018151318.167543-1-tim.gardner@canonical.com> References: <20221018151318.167543-1-tim.gardner@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
[kinetic,linux] md: Replace snprintf with scnprintf
|
expand
|
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index 99db36730e78..ad6ad9df40fb 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c @@ -47,7 +47,7 @@ static void dump_zones(struct mddev *mddev) int len = 0; for (k = 0; k < conf->strip_zone[j].nb_dev; k++) - len += snprintf(line+len, 200-len, "%s%pg", k?"/":"", + len += scnprintf(line+len, 200-len, "%s%pg", k?"/":"", conf->devlist[j * raid_disks + k]->bdev); pr_debug("md: zone%d=[%s]\n", j, line);