> The following SmPL script variant can generate an usable test result.

Yesterday I noticed during the preparation of a corresponding commit
that unwanted space characters were added at three places in the generated 
patch.

elfring@Sonne:~/Projekte/Linux/next-patched> spatch --in-place 
drivers/scsi/megaraid/megaraid_sas_base.c 
~/Projekte/Coccinelle/janitor/move_error_code_assignment_to_function_end2.cocci

git GUI:
…
@@ -8270,31 +8270,24 @@ static int megasas_mgmt_ioctl_fw(struct file *file, 
unsigned long arg)
…
+       if (!instance)
…
+       if (instance->requestorId && !allow_vf_ioctls)
…
+       if (instance->unload == 1)
…


How would you like to improve the pretty-printing for the Coccinelle software?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to