Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2127346iof; Tue, 7 Jun 2022 20:39:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbLN6R1TD3YXBreD38N/KJNZl1FTDydrY1K9eUnEU+r3T49k/JIU6SqI8h1BJAeFT86pwn X-Received: by 2002:a17:90a:4897:b0:1c7:5fce:cbcd with SMTP id b23-20020a17090a489700b001c75fcecbcdmr70767064pjh.45.1654659533138; Tue, 07 Jun 2022 20:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654659533; cv=none; d=google.com; s=arc-20160816; b=tHfvGMmr4DE1QS9prSH6vNj/DpXdpnGkZIHq6y4bITW2lxuG66ccvaeu7c1TxgtZlc Fq49xyn2Izda5xfJdXX06fr2yEX54t7WnyilH+VhtcmquUpYdBDj3ogOH4h711o+m0O4 kcEfEcM8DoEYmDim2R2pJrQsqPERgOpYaO/V8tZqGSGyqqEt3ohtBqC8h6p0YI3/GPsu Q2e7/KF9mjMy51uJH9BCuEP546FrUJgv0AWT9ym1OVLpwDucWndH7LZd7oQRKA6HEeJ/ 0qBPdioexmT4fMCbOIFpZxnaZSNZhsmSIQJV2pe/tE7KNR6uZ+UZiFTekmUpFLf2tkmQ HrtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=ROQ6vCMmRelNRq2vl5hRuopOHbMey2rq+lXrLToo33A=; b=W/M3a9LhKTjzibeG2Vew3+ed85QQtNTnw4Cf5oM4Cb53ZrghnpxPPV4X4n8ZNfpH4r KyPk9c3I5XMMYxT0rFcVFiL5knbgC0WfZYGLH3q/ZPQOKOjDOAGvTiGYiepKZvdtRhdZ Nzb/P9ZI9DIkDWafwoqy1y0s4tuIqUzFi+yO0s+w7+Pik/10efMrvw/hMjhmfHWk1Q09 XqSSoF9oKh9ZMbc2ZlNBihw9HMaB7VXiRetLuQAio2Tyc4ZCqjaotr8PcykawhWJUmU7 HtfHrCke/D8K11cLfHR9idaX9PGKqwYmogaPby9TALGTkO+/E73AQqKENVSdnGz5lWA0 9nEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=qrntoUTl; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u9-20020a170902e80900b00160c9429c19si23409063plg.77.2022.06.07.20.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:38:53 -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=fail header.i=@weissschuh.net header.s=mail header.b=qrntoUTl; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 60FB22A25EB; Tue, 7 Jun 2022 19:58:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244816AbiFGP4M (ORCPT + 99 others); Tue, 7 Jun 2022 11:56:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344631AbiFGP4J (ORCPT ); Tue, 7 Jun 2022 11:56:09 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7F9328E12 for ; Tue, 7 Jun 2022 08:56:05 -0700 (PDT) From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1654617363; bh=UwJaoAVoa61DCnp3vhNmUCc8wPxbMXJadrTLt8SmqCQ=; h=From:To:Cc:Subject:Date:From; b=qrntoUTld+NGDiE5Bqw7eLxramszHrt0peuvaCimeBz3YqtUbTTA+OPnBTPFsxOvW xAFMmjL6upk/fe1S282aPfDeyezCHZgCk1j1MJ9Hq0MJXUFW4B1SmzedqWbC63lU7h Xr+KWNhLEUQwNO3rOAW+51Vl1yMAXWDGytoXvPo8= To: Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [PATCH] nvme: add device name to warning in uuid_show() Date: Tue, 7 Jun 2022 17:55:55 +0200 Message-Id: <20220607155555.8623-1-linux@weissschuh.net> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=ed25519-sha256; t=1654617355; l=1083; s=20211113; h=from:subject; bh=UwJaoAVoa61DCnp3vhNmUCc8wPxbMXJadrTLt8SmqCQ=; b=bg7FhTgM0Iz/uy954ZRKT/GOeWkKox3seP2mKi3+lLyDYj2x7go1RWrifrHKufOY7qmjOXAYWuMl qbOACxxkCX5BXmHEPExMMa7l1rkPmecuQiP15JaPCGZWCZx0R+M/ X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=9LP6KM4vD/8CwHW7nouRBhWLyQLcK1MkP6aTZbzUlj4= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 This provides more context to users. Old message: [ 00.000000] No UUID available providing old NGUID New message: [ 00.000000] block nvme0n1: No UUID available providing old NGUID Fixes: d934f9848a77 ("nvme: provide UUID value to userspace") Signed-off-by: Thomas Weißschuh --- drivers/nvme/host/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 24165daee3c8..189bbd6c0c29 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -3285,8 +3285,7 @@ static ssize_t uuid_show(struct device *dev, struct device_attribute *attr, * we have no UUID set */ 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); } return sysfs_emit(buf, "%pU\n", &ids->uuid); base-commit: e71e60cd74df9386c3f684c54888f2367050b831 -- 2.36.1