Hello,

TF-A logging macros (NOTICE, WARN, ...) are widely used all across TF-A code base today. I fear converting them into functions would require too many changes at the caller site (mainly type fixes, I guess). Such a change sounds too disruptive to me. Thus I think we should make a deviation for these.

Best regards,
Sandrine


From: nithing1999--- via TF-A <tf-a@lists.trustedfirmware.org>
Sent: 18 August 2023 14:22
To: tf-a@lists.trustedfirmware.org <tf-a@lists.trustedfirmware.org>
Subject: [TF-A] MISRA-C Violations for function like macros in Trusted Firmware-A(TFA) code
 
It is observed that functions like macros like NOTICE, WARN and assert are present in the Trusted Firmware-A code. MISRA-C standard treats these as violations. shall we take these as deviation? please suggest.
TFA Guidelines recommends using logging macros. So can we make deviations or need to change the MACRO into function.
--
TF-A mailing list -- tf-a@lists.trustedfirmware.org
To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.org