Format output Error

Bug #1895260 reported by Plato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
New
Undecided
Unassigned

Bug Description

I ran the following code, but I couldn't get Correct result. Result is "data:3", but Correct result should be "data:03"
And the compiler version is:arm-none-eabi-cpp (GNU Arm Embedded Toolchain 9-2020-q2-update) 9.3.1 20200408 (release)

int main()
{
  printf("data:%02d\r\n", 3);
}

Output:
data:3

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.