]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
trace: events: dma: fix incorrect iova,size prints
authorSri Krishna chowdary <schowdary@nvidia.com>
Wed, 22 Oct 2014 12:43:17 +0000 (18:13 +0530)
committerPritesh Raithatha <praithatha@nvidia.com>
Mon, 11 Apr 2016 11:02:08 +0000 (16:32 +0530)
iova should be printed using %pad and size using %zu.

Bug 1566945

Change-Id: Id7cc37617679f8eeec3f1f664f14678dec2880c5
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/562476
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
include/trace/events/dmadebug.h

index 0a91ee9c9f1be9dd2bfce0d0e74999dc69fadff3..f26901c87240741aa26908bf92587a20c9e2158c 100644 (file)
@@ -55,8 +55,8 @@ DECLARE_EVENT_CLASS(dmadebug,
                __entry->page = page;
        ),
 
-       TP_printk("device=%s, iova=%llx, size=%d phys=%llx platformdata=%s",
-                  __get_str(name), (unsigned long long)__entry->dma_addr,
+       TP_printk("device=%s, iova=%pad, size=%zu phys=%llx platformdata=%s",
+                  __get_str(name), &__entry->dma_addr,
                   __entry->size,
                   (unsigned long long)page_to_phys(__entry->page),
                   debug_dma_platformdata(__entry->dev))