Pass nullptr instead of the empty string for format, and remove the excess varargs argument. Also, avoid NULL in favor of nullptr.