changeset 18657:74f612049e4e

fixed format string issues
author Doug Simon <doug.simon@oracle.com>
date Wed, 10 Dec 2014 09:45:20 +0100
parents de362aafce05
children 304b65422434 e8634d0e6667
files src/share/vm/graal/graalRuntime.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp	Tue Dec 09 23:53:43 2014 +0100
+++ b/src/share/vm/graal/graalRuntime.cpp	Wed Dec 10 09:45:20 2014 +0100
@@ -627,7 +627,7 @@
     case 's': tty->print("%d", (jshort) value); break;
     case 'i': tty->print("%d", (jint) value); break;
     case 'f': tty->print("%f", uu.f); break;
-    case 'j': tty->print(INT64_FORMAT, value); break;
+    case 'j': tty->print(JLONG_FORMAT, value); break;
     case 'd': tty->print("%lf", uu.d); break;
     default: assert(false, "unknown typeChar"); break;
   }
@@ -907,7 +907,7 @@
       if (num_read == -1) {
         warning("Error reading file %s due to %s", path, strerror(errno));
       } else if (num_read != st.st_size) {
-        warning("Only read %d of " SIZE_FORMAT " bytes from %s", num_read, st.st_size, path);
+        warning("Only read %d of " SIZE_FORMAT " bytes from %s", num_read, (size_t) st.st_size, path);
       }
       os::close(file_handle);
       if (num_read == st.st_size) {