< prev index next >

src/share/vm/services/diagnosticCommand.cpp

Print this page
rev 12476 : 8171924: Use SIZE_FORMAT to print size_t values.
Reviewed-by: dholmes
Contributed-by: arno.zeller@sap.com

@@ -290,11 +290,11 @@
       }
 
       char *opt = (char *)os::malloc(opt_len, mtInternal);
       if (opt == NULL) {
         output()->print_cr("JVMTI agent attach failed: "
-                           "Could not allocate %zu bytes for argument.",
+                           "Could not allocate " SIZE_FORMAT " bytes for argument.",
                            opt_len);
         return;
       }
 
       jio_snprintf(opt, opt_len, "%s=%s", _libpath.value(), _option.value());
< prev index next >