Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1798551img; Wed, 27 Feb 2019 05:41:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IYvEuhwUZbftwHwAfdZvhQpP9K2Xc+xGak9owVwcIN/vjmBYwA/CVX5ztMr/pKyrsF1G03I X-Received: by 2002:a17:902:b483:: with SMTP id y3mr2250864plr.114.1551274910575; Wed, 27 Feb 2019 05:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551274910; cv=none; d=google.com; s=arc-20160816; b=AcQZayjT51tdmkBT1ZZE80iWBt9cAb6/h/xFxEs0uanYzT3zpgT+pG3S0oJb4egn10 OjCAnHgE29bjlo0LvGH9wBlNyW9MRXvm1zFtr+eD1DTZTC4vYbleZvaNUFAAmLdBNVrl Qi//g1gTKw3VN9QJwEjEwSLtVzvt3xbn4tRD8IkGUTKb78lnRIFtPPqbjJp6TOvD32/C Y41tkwOLgoBddXWFMKXoMANFBCQFbtNS5u5y4snciwBmwEKfjRkJNbVR7CV4x01PPsMm f489hLTl9EzY9kJJcMDjVOBZ6w9LD59XNYNUY+82NMuiaF5ctGIwtquXnGv3344Iosvi yMPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=HKAPcyMOnZ0swIg5AOCHTTINqsMyANPHX0lW76jrsYw=; b=x52voC5PKt2PPoG7Qu861fIimyFiBkAZlmi8fY1DqIvOpzq0qru1GDs8chl2mw8zZH xd+OeI9jTW0WEGhL5EOyT54naX+7P+BdsfRdWCFhHycceNz2ZOPGICE0QNjsLIEcUMWv NMztxU700ontjBEQ4eao1Am56sjpKiZHdl8ZjlWmAiTG40StFr7AnvaEXhdM0YXXO8NA PdnCkdFeOXL22AwLtgrteTbpQGAoVqYFcsI5WBvOgp2FcLaMkjQAD/Gpe0tYr6QvC1/k ylXy9lTrbd0PdSXxIYZTRfrYeHlx66fkWsj66DOgPo3ATFkxF+/eX8QEa5SpNuzbDTtv xxXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si15743442pll.376.2019.02.27.05.41.34; Wed, 27 Feb 2019 05:41:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730454AbfB0NkL (ORCPT + 99 others); Wed, 27 Feb 2019 08:40:11 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41844 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730264AbfB0NkL (ORCPT ); Wed, 27 Feb 2019 08:40:11 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1RDbCSh015188 for ; Wed, 27 Feb 2019 08:40:10 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qwtpx35eg-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 27 Feb 2019 08:40:09 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 27 Feb 2019 13:40:06 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 27 Feb 2019 13:40:04 -0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x1RDe3tP50331708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 Feb 2019 13:40:03 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E972042045; Wed, 27 Feb 2019 13:40:02 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8167842041; Wed, 27 Feb 2019 13:40:02 +0000 (GMT) Received: from [9.145.24.93] (unknown [9.145.24.93]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 27 Feb 2019 13:40:02 +0000 (GMT) Subject: Re: [PATCH 2/5] ocxl: Clean up printf formats To: "Alastair D'Silva" , alastair@d-silva.org Cc: Andrew Donnellan , Arnd Bergmann , Greg Kroah-Hartman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20190227045741.21412-1-alastair@au1.ibm.com> <20190227045741.21412-3-alastair@au1.ibm.com> From: Frederic Barrat Date: Wed, 27 Feb 2019 14:40:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190227045741.21412-3-alastair@au1.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19022713-0016-0000-0000-0000025B9235 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19022713-0017-0000-0000-000032B5FA50 Message-Id: <577c579a-5bf8-45e6-c5f7-67aa00931e59@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-27_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902270091 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 27/02/2019 à 05:57, Alastair D'Silva a écrit : > From: Alastair D'Silva > > Use %# instead of using a literal '0x' > > Signed-off-by: Alastair D'Silva > --- I don't really care either way, but it looks ok. Acked-by: Frederic Barrat > drivers/misc/ocxl/config.c | 6 +++--- > drivers/misc/ocxl/context.c | 2 +- > drivers/misc/ocxl/trace.h | 10 +++++----- > 3 files changed, 9 insertions(+), 9 deletions(-) > > diff --git a/drivers/misc/ocxl/config.c b/drivers/misc/ocxl/config.c > index 8f2c5d8bd2ee..0ee7856b033d 100644 > --- a/drivers/misc/ocxl/config.c > +++ b/drivers/misc/ocxl/config.c > @@ -178,9 +178,9 @@ static int read_dvsec_vendor(struct pci_dev *dev) > pci_read_config_dword(dev, pos + OCXL_DVSEC_VENDOR_DLX_VERS, &dlx); > > dev_dbg(&dev->dev, "Vendor specific DVSEC:\n"); > - dev_dbg(&dev->dev, " CFG version = 0x%x\n", cfg); > - dev_dbg(&dev->dev, " TLX version = 0x%x\n", tlx); > - dev_dbg(&dev->dev, " DLX version = 0x%x\n", dlx); > + dev_dbg(&dev->dev, " CFG version = %#x\n", cfg); > + dev_dbg(&dev->dev, " TLX version = %#x\n", tlx); > + dev_dbg(&dev->dev, " DLX version = %#x\n", dlx); > return 0; > } > > diff --git a/drivers/misc/ocxl/context.c b/drivers/misc/ocxl/context.c > index c10a940e3b38..3498a0199bde 100644 > --- a/drivers/misc/ocxl/context.c > +++ b/drivers/misc/ocxl/context.c > @@ -134,7 +134,7 @@ static vm_fault_t ocxl_mmap_fault(struct vm_fault *vmf) > vm_fault_t ret; > > offset = vmf->pgoff << PAGE_SHIFT; > - pr_debug("%s: pasid %d address 0x%lx offset 0x%llx\n", __func__, > + pr_debug("%s: pasid %d address %#lx offset %#llx\n", __func__, > ctx->pasid, vmf->address, offset); > > if (offset < ctx->afu->irq_base_offset) > diff --git a/drivers/misc/ocxl/trace.h b/drivers/misc/ocxl/trace.h > index bcb7ff330c1e..8d2f53812edd 100644 > --- a/drivers/misc/ocxl/trace.h > +++ b/drivers/misc/ocxl/trace.h > @@ -28,7 +28,7 @@ DECLARE_EVENT_CLASS(ocxl_context, > __entry->tidr = tidr; > ), > > - TP_printk("linux pid=%d spa=0x%p pasid=0x%x pidr=0x%x tidr=0x%x", > + TP_printk("linux pid=%d spa=%p pasid=%#x pidr=%#x tidr=%#x", > __entry->pid, > __entry->spa, > __entry->pasid, > @@ -61,7 +61,7 @@ TRACE_EVENT(ocxl_terminate_pasid, > __entry->rc = rc; > ), > > - TP_printk("pasid=0x%x rc=%d", > + TP_printk("pasid=%#x rc=%d", > __entry->pasid, > __entry->rc > ) > @@ -87,7 +87,7 @@ DECLARE_EVENT_CLASS(ocxl_fault_handler, > __entry->tfc = tfc; > ), > > - TP_printk("spa=%p pe=0x%llx dsisr=0x%llx dar=0x%llx tfc=0x%llx", > + TP_printk("spa=%p pe=%#llx dsisr=%#llx dar=%#llx tfc=%#llx", > __entry->spa, > __entry->pe, > __entry->dsisr, > @@ -127,7 +127,7 @@ TRACE_EVENT(ocxl_afu_irq_alloc, > __entry->irq_offset = irq_offset; > ), > > - TP_printk("pasid=0x%x irq_id=%d virq=%u hw_irq=%d irq_offset=0x%llx", > + TP_printk("pasid=%#x irq_id=%d virq=%u hw_irq=%d irq_offset=0x%llx", > __entry->pasid, > __entry->irq_id, > __entry->virq, > @@ -150,7 +150,7 @@ TRACE_EVENT(ocxl_afu_irq_free, > __entry->irq_id = irq_id; > ), > > - TP_printk("pasid=0x%x irq_id=%d", > + TP_printk("pasid=%#x irq_id=%d", > __entry->pasid, > __entry->irq_id > ) >