Hi gus, I want to add a pirntf() to a function as the first statement just after the variable definition.

Is there any possibility to wirte a generic rule? thanks.

static void __devexit alx_remove(device_t pdev)
{
   struct alx_adapter *adpt = device_get_softc(pdev);
   struct alx_hw *hw = &adpt->hw;
   struct ifnet *netdev = adpt->netdev;

+ printf("hello word\n");

   SET_ADPT_FLAG(1, STATE_DOWN);
   cancel_work_sync(&adpt->alx_task);

}


_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to