[lustre-devel] linux-4.5/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c:880: wrong % specifier ?

David Binderman dcb314 at hotmail.com
Mon Mar 14 12:36:33 PDT 2016


Hello there,

[linux-4.5/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c:880]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.    

Source code is

    return sprintf(buf, "%d\n", ldlm_cancel_unused_locks_before_replay);

but

extern unsigned int ldlm_cancel_unused_locks_before_replay;

Suggest use %u, not %d.


Regards

David Binderman
 		 	   		  


More information about the lustre-devel mailing list