MB-23067: Remove %n from printf
MB-23067: Remove %n from printf

We use %n to count the number of characters printed by printf. This is a
secuirty hole and hence is disabled by default by MSVC. This patch
simply uses the length of the string passed rather than using %d. This
is to avoid doing some MSVC specific defs and because we try to avoid %n
in general.

Change-Id: I90f9bf117276516a3f15b31fef662ddce927d840
Reviewed-on: http://review.couchbase.org/75543
Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com>
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>

membase/ep-engine,membase/ep-engine,daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine,couchbase/ep-engine,membase/ep-engine,couchbase/ep-engine,couchbase/ep-engine,couchbase/ep-engine,membase/ep-engine,daverigby/kv_engine