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

lov_verify_lmm() wrong format for the argument type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • 3
    • 9223372036854775807

      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

            wc-triage WC Triage
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: