Bug 375270: fixing frprintf args in DumpHeap

This commit is contained in:
igor@mir2.org 2007-04-21 07:06:43 -07:00
parent b3757f8df8
commit 72283683ea

View File

@ -1398,7 +1398,8 @@ DumpHeap(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
} else {
dumpFile = fopen(fileName, "w");
if (!dumpFile) {
fprintf(gErrFile, "gc: can't open %s: %s\n", strerror(errno));
fprintf(gErrFile, "dumpHeap: can't open %s: %s\n",
fileName, strerror(errno));
return JS_FALSE;
}
}