drm: Verify debug message arguments
Add __attribute__((format (printf, 4, 5))) to drm_ut_debug_printk and fix fallout. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
		
					parent
					
						
							
								5ad3d8831f
							
						
					
				
			
			
				commit
				
					
						bbb0aef5cf
					
				
			
		
					 5 changed files with 17 additions and 14 deletions
				
			
		|  | @ -1087,8 +1087,9 @@ void radeon_compute_pll_legacy(struct radeon_pll *pll, | |||
| 	*frac_fb_div_p = best_frac_feedback_div; | ||||
| 	*ref_div_p = best_ref_div; | ||||
| 	*post_div_p = best_post_div; | ||||
| 	DRM_DEBUG_KMS("%d %d, pll dividers - fb: %d.%d ref: %d, post %d\n", | ||||
| 		      freq, best_freq / 1000, best_feedback_div, best_frac_feedback_div, | ||||
| 	DRM_DEBUG_KMS("%lld %d, pll dividers - fb: %d.%d ref: %d, post %d\n", | ||||
| 		      (long long)freq, | ||||
| 		      best_freq / 1000, best_feedback_div, best_frac_feedback_div, | ||||
| 		      best_ref_div, best_post_div); | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Joe Perches
				Joe Perches