Fixed #4964 (printf format argument check only supports simple variables)