Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8227630

adjust format specifiers in loadlib_aix.cpp

XMLWordPrintable

    • b06
    • ppc
    • aix

        Currently we use %llu printf-format specifiers at 2 places in loadlib_aix.cpp where we output size_t variables .
        This leads to warnings with xlc16/xlclang :

        /nightly/jdk/src/hotspot/os/aix/loadlib_aix.cpp:210:48: warning: format specifies type 'unsigned long long' but the argument
        has type 'size_t' (aka 'unsigned long') [-Wformat]
          trcVerbose("loadquery buffer size is %llu.", buflen);
                                               ~~~~ ^~~~~~
                                               %zu

        We should use correct format specifiers (or add a cast).

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: