From f06c05cf5a2c2678a76c15adbe7f3acbc9478617 Mon Sep 17 00:00:00 2001 From: Refael Ackermann Date: Sat, 3 Jun 2017 23:50:11 -0400 Subject: [PATCH] src: remove `'` print modifier It is not supported on Windows so it emits: warning C4476: 'fprintf' : unknown type field character ''' in format specifier warning C4474: 'fprintf' : too many arguments passed for format string PR-URL: https://github.com/nodejs/node/pull/13447 Fixes: https://github.com/nodejs/node/issues/13463 Reviewed-By: Anna Henningsen Reviewed-By: Andreas Madsen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- src/env-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env-inl.h b/src/env-inl.h index f73f9687b0a4f3..cf7304c98dba76 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -146,7 +146,7 @@ inline bool Environment::AsyncHooks::pop_ids(double async_id) { if (uid_fields_[kCurrentAsyncId] != async_id) { fprintf(stderr, "Error: async hook stack has become corrupted (" - "actual: %'.f, expected: %'.f)\n", + "actual: %.f, expected: %.f)\n", uid_fields_[kCurrentAsyncId], async_id); Environment* env = Environment::GetCurrent(isolate_);