Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-8181

lov_verify_lmm() wrong format for the argument type

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • 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

        Attachments

          Activity

            People

            • Assignee:
              wc-triage WC Triage
              Reporter:
              green Oleg Drokin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: