From nobody Wed Dec 17 04:17:10 2025 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3721120F96C for ; Tue, 14 Jan 2025 12:17:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736857069; cv=none; b=V/J0180tJcNFRwS/h3eE08OuTcxLvf2PKiIXrvPCMepnCBKShKoqde9LVUQfhN+hhFH8A7U8QTh8dBPWKpWHB1fHxF3aMs0OOzA6jqUhM7F+b5yguMwcOLOzB1NAMtYAqC7OENIKWl74YkRj+AVSSzy6kyu7UDYf0FQdRHofAK4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736857069; c=relaxed/simple; bh=jr7xvBLbTs8AXjBGnW+02Qpzmu2Uy/T5jd3rSX6IdqU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KgQW0mkPM16FAqzwhGtsuLQrBUf8nTA+YEYEe0uLkZtBId4UgYTkbBG2MEOH4+m2yWM/0TnyBO6he4ohatIn0jdeRttb58P6z+FVS47blzJkJCQLXO0fcagS04ABKgitJuw525B+H44T8dNIsI6UHioebfdtZ1rfhmRgzwmtHZw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bl3MuZAp; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bl3MuZAp" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2166f1e589cso113657515ad.3 for ; Tue, 14 Jan 2025 04:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736857067; x=1737461867; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3pW8jVmS4VFugoY7GZdOibaKGOjCoq74IGX2A2eAmOE=; b=bl3MuZAptX4jHyyVUCVgxFrNztfLLEIRrQlTbF0bvNvMyfQvxdqSlNXyQwvRvezsSK HInGx6+nuUoFdorVaaR99EtHaJj9QyMNP72pssH+rW8Jb1Jx4ZKfW4nlhHWFC8JDNNKb ywtA8boIu+KwshR1AeZd7LqBoHcUUKBxaASv8T+xM+3OxQniUeY5rcn8jp2tea6e77kM rqjdUcWfppf68IRQ9rXiNhvCP4m1VgL+a33VqqHzoleVGszdN0vE2n2P2Ju+m8aK8Ly9 ce2VzkG5Feq5bg7Ng9DuqFhNa7T08wNpOrCqchmKf9aW+TGWA3RC9DaHdQBIO8ghddzP ROjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736857067; x=1737461867; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3pW8jVmS4VFugoY7GZdOibaKGOjCoq74IGX2A2eAmOE=; b=wpmZNFSBDmSrjly5kKhXP6Vfx6SOb3a0P15fRNcB58fipKfBya832GBHeMCGehgq8i RrPVmtYMcB5oy7L713RXhBjN+PBF/ulkKJSU09XRwMF4emMzc8WAMpqBSATaCJgFjITm ZyICd+MKC89Ku9JTrRBezPLhGJbmUt9amPKxKGRdl0yAvS37H4OyXFIhkHV4JcM5Z7Mq 9QGM09YIjGF2H6qlsezsQfIzufRGhk1fcwu7/hGGD5NIUZHbQ4Dn8ynRA7SNsPlLsBfU fDJeLb1ILxtRnA4R8OWuhtIlQjVMolVaupfQOmxvnrR4XKNoR8ufoIBKpAkT+urt2QYn YeQQ== X-Forwarded-Encrypted: i=1; AJvYcCU4iy5Txv3oKAYj6dyGgp/y3scpCE0GMOVjV1toi+Ritt89Z2wStqj/aMqMqOAQhMpn/0WsdpjRhUoiz44=@vger.kernel.org X-Gm-Message-State: AOJu0YylqEI3o3vZw2vaVQg0jk84+OuTCe59dc9i31Xow4sr61fE9b/v 7vYf6QAzNIx4fHoQs/jn9Fhie5ypY65RdXvJ7Wc1shJvkkomXJed X-Gm-Gg: ASbGnctgY54sV11sJ90DwRYGp1KqXzCoofBf1wHYS6a10JxKFakSTB+q7T5F3ZYqsfi FtxmC9/sYdfvoxSjeOQkkt4+N5/2VkfA8+SPeRqLlfob6/djmwOpwbUWpRBNvquXJYV1zWsyAXK NpdrEGw3q17dmXqerNQF6JbZ5PbyyExalbmsQgDQPjgx1o2yh5t+C/fQNuf6YmUvld5dmYBCqWS baa/Q2v1eFEr9uhre2rMrudojFV+vt4oUTMJGq/F0rOks4uLL+M8uqDjqcZJ1PIxso= X-Google-Smtp-Source: AGHT+IEXSVP5JdT0mPrqZQGlS8F2kqeWsIlMbXul9RfUFATL4tYtk0TbUE4IaUit2bl0zOCf6pycgw== X-Received: by 2002:a17:902:c408:b0:21a:8839:4f4d with SMTP id d9443c01a7336-21a88395835mr283546495ad.6.1736857067443; Tue, 14 Jan 2025 04:17:47 -0800 (PST) Received: from ajithpv-Ubuntu.. ([103.16.71.115]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21a9f217d56sm66747995ad.141.2025.01.14.04.17.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 04:17:47 -0800 (PST) From: Ajith P V To: dpenkler@gmail.com, gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ajith P V Subject: [PATCH] staging: gpib: fix prefixing 0x with decimal output Date: Tue, 14 Jan 2025 17:46:56 +0530 Message-ID: <20250114121656.30577-1-ajithpv.linux@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" * pr_err() of request_region() in cb7210 uses 0x%u which is defective. * The config->ibbase is of u32 and correct prefix is 0x%x. * This error reported by checkpatch with below message: ERROR: Prefixing 0x with decimal output is defective Signed-off-by: Ajith P V --- drivers/staging/gpib/cb7210/cb7210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gpib/cb7210/cb7210.c b/drivers/staging/gpib/cb= 7210/cb7210.c index e5436f55c630..2e7679511ee9 100644 --- a/drivers/staging/gpib/cb7210/cb7210.c +++ b/drivers/staging/gpib/cb7210/cb7210.c @@ -1041,7 +1041,7 @@ int cb_isa_attach(gpib_board_t *board, const gpib_boa= rd_config_t *config) cb_priv =3D board->private_data; nec_priv =3D &cb_priv->nec7210_priv; if (request_region(config->ibbase, cb7210_iosize, "cb7210") =3D=3D 0) { - pr_err("gpib: ioports starting at 0x%u are already in use\n", config->ib= base); + pr_err("gpib: ioports starting at 0x%x are already in use\n", config->ib= base); return -EIO; } nec_priv->iobase =3D config->ibbase; --=20 2.43.0