mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	gpu: host1x: Print address/offset pairs consistently
Consistently use a format of %pad+%#x to print address/offset in debug messages. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
		
							parent
							
								
									7f27d60b28
								
							
						
					
					
						commit
						ba73fbc2ca
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -54,8 +54,8 @@ static void cdma_timeout_cpu_incr(struct host1x_cdma *cdma, u32 getptr,
 | 
				
			||||||
		u32 *p = (u32 *)(pb->mapped + getptr);
 | 
							u32 *p = (u32 *)(pb->mapped + getptr);
 | 
				
			||||||
		*(p++) = HOST1X_OPCODE_NOP;
 | 
							*(p++) = HOST1X_OPCODE_NOP;
 | 
				
			||||||
		*(p++) = HOST1X_OPCODE_NOP;
 | 
							*(p++) = HOST1X_OPCODE_NOP;
 | 
				
			||||||
		dev_dbg(host1x->dev, "%s: NOP at %#llx\n", __func__,
 | 
							dev_dbg(host1x->dev, "%s: NOP at %pad+%#x\n", __func__,
 | 
				
			||||||
			(u64)pb->phys + getptr);
 | 
								&pb->phys, getptr);
 | 
				
			||||||
		getptr = (getptr + 8) & (pb->size_bytes - 1);
 | 
							getptr = (getptr + 8) & (pb->size_bytes - 1);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	wmb();
 | 
						wmb();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -163,8 +163,8 @@ static void show_channel_gathers(struct output *o, struct host1x_cdma *cdma)
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			host1x_debug_output(o, "    GATHER at %#llx+%04x, %d words\n",
 | 
								host1x_debug_output(o, "    GATHER at %pad+%#x, %d words\n",
 | 
				
			||||||
					    (u64)g->base, g->offset, g->words);
 | 
										    &g->base, g->offset, g->words);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			show_gather(o, g->base + g->offset, g->words, cdma,
 | 
								show_gather(o, g->base + g->offset, g->words, cdma,
 | 
				
			||||||
				    g->base, mapped);
 | 
									    g->base, mapped);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue