Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2044416iof; Tue, 7 Jun 2022 17:59:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHcswmexlPqkdOz97l1l+7Tu3LlF62u47pmiCJx5x07vvlmK+/5pIWJVKI335J2qJR0fuj X-Received: by 2002:a17:902:ca0b:b0:167:4c4d:7320 with SMTP id w11-20020a170902ca0b00b001674c4d7320mr24092253pld.113.1654649971273; Tue, 07 Jun 2022 17:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654649971; cv=none; d=google.com; s=arc-20160816; b=f4EjJITv0QUg+eRnukzJP8VSMcIf7VRIYHYOxcWrkfRCGL5/YjxvEEYyS3OgnXQXwn y+piVGKT0Yg/XBDfcQdlNkeWGk2U0DKodDlBvGQrrPTMl1Lm8bs6Nl7w40wM7f9CnjNI CjZHJuXHf/cr2jXjH/PR9YK41sRweC3MtPVv9C3DIxczhE3Hz+WOAaExK3GP8QLCYBcf o3y92EtoNGg/h9ljfS8Bq5RdQ8u2Uw6OE0zjvDshVEdZxhbb4KFERxypgqtch0J45JjS bvN1X26zvM/xgOa5VH9hNfAmrZMyuaSsng7nB2ZC0SP4OvaE/fmaDS7H12rWqguSX8UF qcuQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MuC/fQh8YbdpYdn2BP3N1r69QeBod8qmVExLueVXhms=; b=YuFs8chT/sS3+JCS/Wwvsc3fDpYvkmg/5aJEW921Ja0qovm99dirij9+K9aubj6HD+ uP0xKELeQU0eTjYmj77Bb+OmV90giJT1widFcvn2qg1N7Gawp1mMnP5h1jVCTnJrmI+z F2xZHHbETUplYDJfpdSV+ycA2SrJfiImC5j7shTfsYUBrWzgiR/9zNBBvaY3jE820wTU ciKXJx2SVw+K/0fdKVHizoonyD9uhrPY/n8I94UH+tTAh1ZP/y68qw+Xp8jO6WOGUjyM u1fZh7BalLlgoQ1Ojk3l+R9Zzx4eAz2ZcpgdnBq3vn5uYStxw4Yw0STpoJrHyA8Mgrg3 33Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BLBTWbog; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j11-20020a62b60b000000b005181502b103si21992721pff.322.2022.06.07.17.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 17:59:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BLBTWbog; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EBC9C16837E; Tue, 7 Jun 2022 17:58:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344929AbiFGQMF (ORCPT + 99 others); Tue, 7 Jun 2022 12:12:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344909AbiFGQL7 (ORCPT ); Tue, 7 Jun 2022 12:11:59 -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 B8F0D100520 for ; Tue, 7 Jun 2022 09:11:57 -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 455A161680 for ; Tue, 7 Jun 2022 16:11:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CC74C34114; Tue, 7 Jun 2022 16:11:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654618316; bh=xnZyLh9MglV87sUUDApLik+cZvW272wQ3/jfI2c35fs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BLBTWbogFDKfUCKZhFSv1kCiTqK7tJkvsL1Ac/1ZnVmWUl9L46R//RhIlXghOIQjY /xkGFzjIAF8IRjsM/R4lOIXA5IcRAEXnYFMg+Im6OdfZbt7EuPTAH6DZ2JsMC1vt98 GFG9CM6yLgnIUHq2bQhJji2N7+NWe9O1GrCZ3xSpwdk5p8jd2zIbUf4Kd/JPBputXr g8aS3SdrtNVKoaUJ638U3Xj8RZV12dLB7YgWGp06B7s8rzhyk4fcE3oCCnzmX03WKE HBHtoXFL/Y2cZJUxhgH2ygWcvZL6KdBwn7vQ/T9ocyIk3L067o6NZAwGPtNzLKy0GC qhtNt+MLiJayw== Date: Tue, 7 Jun 2022 10:11:53 -0600 From: Keith Busch To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvme: add device name to warning in uuid_show() Message-ID: References: <20220607155555.8623-1-linux@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220607155555.8623-1-linux@weissschuh.net> X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Tue, Jun 07, 2022 at 05:55:55PM +0200, Thomas Wei?schuh wrote: > if (uuid_is_null(&ids->uuid)) { > - printk_ratelimited(KERN_WARNING > - "No UUID available providing old NGUID\n"); > + dev_warn_ratelimited(dev, "No UUID available providing old NGUID\n"); > return sysfs_emit(buf, "%pU\n", ids->nguid); The line split was correct to prevent this overly long line. But otherwise, this looks good, though I'm wondering why this needs to be printed every time someone reads the attribute.