This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR59941: Error - #2633: Modifiers not allowed in printf_support

Part Number: MSP430FR59941

Hello everyone,

I am trying to load a custom library on the MSP430. Among many files, a common error that I am observing is this - #2633 - Modifiers not allowed in printf_support=minimal mode. 

An example of the line that throws the error is as follows:

NNOM_LOG("Top %d Accuracy: %d.%02d%% \n", i + 1, (top * 100) / pre->predict_count,((top * 100 * 100) / pre->predict_count)%100);

I looked at some questions on the forum but I am a bit confused about what I can use instead. I had another statement which is similar to the above line but does not specify the number of digits as follows:

NNOM_LOG("Top %d Accuracy: 100%% \n", i + 1);

I tried removing the specification of the number of digits and instead re-wrote the first line as:

NNOM_LOG("Top %d Accuracy: %d.%d%% \n", i + 1, (top * 100) / pre->predict_count,((top * 100 * 100) / pre->predict_count)%100);

However, in this scenario I receive a warning in the console that says: #183-D argument is incompatible with corresponding format strinf conversion.

If anyone could help me out with an idea of what I can try here or possibly re-direct me to a similar discussion it would be extremely helpful.

Thanks!!

Best,

Siddhant

**Attention** This is a public forum