On 07/31/2018 11:12 AM, SF Markus Elfring wrote:
@rule1@
expression x;
expression list y;
@@
-DBG_PRINTF
+NV_PRINTF
(
- (x),
y);
This doesn't work:
- DBG_PRINTF((DBG_MODULE_OS, DEBUGLEVEL_ERRORS,
- "NVRM: x86emu: int $%d (eax = %08x)\n", num, M.x86.R_EAX));
+ NV_PRINTF();
@A depends on rule1@
@@
NV_PRINTF(...,
- \(DBG_LEVEL_INFO \| DEBUGLEVEL_TRACEINFO \| DBG_LEVEL_SETUPINFO \|
DEBUGLEVEL_SETUPINFO\)
+ LEVEL_INFO
, ...);
This does work, thanks.
Do you find such SmPL code adjustments useful?
Yes, thank you. I always appreciate optimization suggestions.
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may
contain
confidential information. Any unauthorized review, use, disclosure or
distribution
is prohibited. If you are not the intended recipient, please contact the
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci