Create a function that logs messages from firmware.
The function must accept:
If the timestamp flag is:
false
true
Use a fixed timestamp value of 123456 for this exercise.
123456
The final printed format must be:
Without timestamp:
message
With timestamp:
[123456] message
In main():
main()
0
1
Example 1
Input:
0 Hello
Output:
Hello
Example 2
1 Alert
[123456] Alert
Constraints:
Test Cases
Test Results
Input
Expected Output