> @@ > format list[5] five; > expression E, A1, A2, A3, A4, A5; > @@ > > -Statslog( E, "%@five@", A1, A2, A3, A4, A5 ); > +Debug( E, "%@five@", A1, A2, A3, A4, A5 );
The problem is the macro LDAP_PF_LOCAL_SENDMSG_ARG that is used in contexts like: c = connection_init( sfd, (Listener *)&dummy_list, "", "", CONN_IS_CLIENT, 0, NULL LDAP_PF_LOCAL_SENDMSG_ARG(NULL)); Note the lack of a comma after NULL. Putting the following in a file con.h: #define LDAP_PF_LOCAL_SENDMSG_ARG(x) and then using spatch f5.cocci -macro-file-builtins ~/incoming/con.h ~/openldap/servers/slapd/connection.c gives the expected result. julia _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci