[LU-8181] lov_verify_lmm() wrong format for the argument type Created: 22/May/16  Updated: 17/Mar/21

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Oleg Drokin Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: easy

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

In lov_verify_lmm() we have:

sprintf(buffer+2*i, "%.2X", ((char *)lmm)[i]);

This produces a warning since we only reference char, but assume int in the format.
correct format is apparently %.2hhX



 Comments   
Comment by Arshad Hussain [ 17/Mar/21 ]

Hi Oleg,

This is not valid anymore and could be closed.

$ find . -type f -name "*.[ch]" | xargs grep -i lov_verify_lmm | wc
 0 0 0

Generated at Sat Feb 10 02:15:20 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.