powerpc/eeh: Show hex prefix for PE state sysfs
As Michael suggested, the hex prefix for the output of EEH PE state sysfs entry (/sys/bus/pci/devices/xxx/eeh_pe_state) is always informative to users. Suggested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
		
					parent
					
						
							
								fe7e85c6f5
							
						
					
				
			
			
				commit
				
					
						2013add4ce
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -65,7 +65,7 @@ static ssize_t eeh_pe_state_show(struct device *dev, | ||||||
| 		return -ENODEV; | 		return -ENODEV; | ||||||
| 
 | 
 | ||||||
| 	state = eeh_ops->get_state(edev->pe, NULL); | 	state = eeh_ops->get_state(edev->pe, NULL); | ||||||
| 	return sprintf(buf, "%08x %08x\n", | 	return sprintf(buf, "%0x08x %0x08x\n", | ||||||
| 		       state, edev->pe->state); | 		       state, edev->pe->state); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gavin Shan
				Gavin Shan