Commit 95b2216c authored by Alessandro Rubini's avatar Alessandro Rubini

debug message fixes (one bug, one preference)

printfing dma_addr_t as %lli requires a cast, since it may be a 32-bit
item, like it is on my computer. I got meaningless numbers on printk.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 39ea676f
......@@ -197,7 +197,8 @@ int zfad_map_dma(struct zio_cset *cset, struct zfad_block *zfad_block,
dev_dbg(&cset->head.dev, "configure DMA item %d"
"(addr: 0x%llx len: %d)(dev off: 0x%x)\n",
i, sg_dma_address(sg), sg_dma_len(sg), dev_mem_ptr);
i, (long long)sg_dma_address(sg),
sg_dma_len(sg), dev_mem_ptr);
/* Prepare DMA item */
items[i].start_addr = dev_mem_ptr;
items[i].dma_addr_l = sg_dma_address(sg) & 0xFFFFFFFF;
......
......@@ -853,7 +853,7 @@ static void zfat_irq_trg_fire(struct zio_cset *cset)
/* -1 because of interleaved channel */
fixed_mem_ptr *= (cset->n_chan - 1);
dev_dbg(fa->fmc->hwdev,
"Trigger position: %i samples %i bytes\n",
"Trigger position 0x%x, bytes 0x%x\n",
trg_pos, fixed_mem_ptr);
zfad_block[fa->n_fires].dev_mem_ptr = fixed_mem_ptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment