It looks like SRDebugLog hasn't been used a in a while because uncommenting #define SR_DEBUG_LOG_ENABLED caused a bunch of compiler errors.
This change fixes up the use of SRDebugLog so that uncommenting #define SR_DEBUG_LOG_ENABLED will properly emit log statements.
Additionally, I added the NS_FORMAT attribute to SRErrorLog, which hints to the compiler that SRErrorLog has a format string parameter. This caused a few analyzer warnings that this PR also fixes.
It looks like
SRDebugLog
hasn't been used a in a while because uncommenting#define SR_DEBUG_LOG_ENABLED
caused a bunch of compiler errors.This change fixes up the use of
SRDebugLog
so that uncommenting#define SR_DEBUG_LOG_ENABLED
will properly emit log statements.Additionally, I added the
NS_FORMAT
attribute toSRErrorLog
, which hints to the compiler thatSRErrorLog
has a format string parameter. This caused a few analyzer warnings that this PR also fixes.