summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2008-05-03 15:49:27 +0000
committerGreg Lewis <glewis@FreeBSD.org>2008-05-03 15:49:27 +0000
commit0735038dc5843621d8213d44d8e1b3bd8496021f (patch)
treef45c76e1c29c0249f5f7dff504d1d96b5b1576c4 /java
parent- Clean up directories (diff)
. Use the correct specifier for printing a size_t.
Noticed by: Andrei V. Lavreniyuk (via -Wformat)
Notes
Notes: svn path=/head/; revision=212543
Diffstat (limited to 'java')
-rw-r--r--java/jdk16/files/patch-hotspot-utilities-vmError.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/jdk16/files/patch-hotspot-utilities-vmError.cpp b/java/jdk16/files/patch-hotspot-utilities-vmError.cpp
new file mode 100644
index 000000000000..c94de2102616
--- /dev/null
+++ b/java/jdk16/files/patch-hotspot-utilities-vmError.cpp
@@ -0,0 +1,13 @@
+$FreeBSD: /tmp/pcvs/ports/java/jdk16/files/patch-hotspot-utilities-vmError.cpp,v 1.1 2008-05-03 15:49:27 glewis Exp $
+
+--- ../../hotspot/src/share/vm/utilities/vmError.cpp.orig 2008-04-12 13:56:26.000000000 +0300
++++ ../../hotspot/src/share/vm/utilities/vmError.cpp 2008-04-12 14:26:42.728926827 +0300
+@@ -269,7 +269,7 @@
+ st->print("# java.lang.OutOfMemoryError: ");
+ if (_size) {
+ st->print("requested ");
+- sprintf(buf,"%ld",_size);
++ sprintf(buf,"%zu",_size);
+ st->print(buf);
+ st->print(" bytes");
+ if (_message != NULL) {