Topic : The Print Information Warning about STM32

Forum : ARM

Original Post
Post Information Post
June 27, 2017 - 10:30am
permofrost li

Hello~

I defined the err_log as following:

#define err_log(format, ...) printf( "file:" __FILE__ "; line:%d; " format "\n", __LINE__, ##__VA_ARGS__)

However,when I am using err_log to print information,such as “ err_log("hello world\r\n");” the warning will display: illegal character encoding in string literal. I am assure that the compiled printing has no problem. The warning will disappear when I used printf instead of err_log. I would like to ask why? I cannot understand !  The datasheet of STM32 is given: http://www.kynix.com/uploadfiles/pdf8798/STM3210B-PRIMER.pdf

Replies
Post Information Post
+1
0
-1
November 27, 2018 - 11:48am
john smith

Nice information about the printing I have also a Samsung printer and some time I faced an issue with my printer that is error code 0x803c010b and I am looking for support of this problem.