user4600: char cTime[22];

sprintf(cTime, "%04s/%02s/%2s:%02s:%02s:%02s", year(), month(), day(), hour(), minute(), second());

This sprintf line causes this error:**B0100000063f694Š
Could someone help me debug this?
Thank you.

user3825: %s is string macro but output of year(),... is probably an integer type. Use %d or %u macros in format.

4600: <pre><code>char cTime[22];

sprintf(cTime, "%04s/%02s/%2s:%02s:%02s:%02s", year(), month(), day(), hour(), minute(), second());
</code></pre>

<p>This <code>sprintf</code> line causes this error:**B0100000063f694Š</p>

<p>Could someone help me debug this?
Thank you.</p>
 3825: <p><em>%s</em> is string macro but output of <em>year(),...</em> is probably an integer type. Use <em>%d</em> or <em>%u</em> macros in format.</p>
