Re: [dpdk-dev] [PATCH v12] devtools: alert on new instances of rte_panic and rte_exit

2018-07-26 Thread Arnon Warshavsky
> > One more nit: the title says "additions/removals" but the function is > only about additions. > > > Yup. No removals there..

Re: [dpdk-dev] [PATCH v12] devtools: alert on new instances of rte_panic and rte_exit

2018-07-26 Thread Thomas Monjalon
> 16/07/2018 14:44, Arnon Warshavsky: > > + ! $verbose || printf '\nChecking forbidden tokens additions/removals:\n' > > + report=$(cat $tmpinput | check_forbidden_additions) One more nit: the title says "additions/removals" but the function is only about additions.

Re: [dpdk-dev] [PATCH v12] devtools: alert on new instances of rte_panic and rte_exit

2018-07-26 Thread Arnon Warshavsky
> > + read -d '' awk_script << 'EOF' > > EOF must be quoted? > Missed that one. Yes, the quotes are there to prevent parameter expansion of the awk variables. The script breaks without them

Re: [dpdk-dev] [PATCH v12] devtools: alert on new instances of rte_panic and rte_exit

2018-07-26 Thread Thomas Monjalon
26/07/2018 22:57, Arnon Warshavsky: > > > + if [ $? -ne 0 ] ; then > > > + ret=1 > > > + fi > > > + printf '%s\n' "$report" > > > > You are printing the report, no matter of the result? Why? > > Is it because a warning does not return as an error? > > > There is maybe an imp

Re: [dpdk-dev] [PATCH v12] devtools: alert on new instances of rte_panic and rte_exit

2018-07-26 Thread Arnon Warshavsky
> > +check_forbidden_additions() { # > > This function looks to work with stdin, not a file. > Better to remove the comment about a . > It can actually work with both but you are right. The comment is not beneficial there Will fix with the rest of the list below ... > > > + if [ $? -ne 0 ]

Re: [dpdk-dev] [PATCH v12] devtools: alert on new instances of rte_panic and rte_exit

2018-07-26 Thread Thomas Monjalon
Hi, I am sorry, I always give low priority to tooling review. I was going to apply this one, but I've seen some details to improve. 16/07/2018 14:44, Arnon Warshavsky: > +check_forbidden_additions() { # This function looks to work with stdin, not a file. Better to remove the comment about a .

[dpdk-dev] [PATCH v12] devtools: alert on new instances of rte_panic and rte_exit

2018-07-16 Thread Arnon Warshavsky
This patch adds a new function that is called per every checked patch, and alerts for new instances of rte_panic/rte_exit. The check excludes comments, and alerts in the case of a positive balance between additions and removals. Signed-off-by: Arnon Warshavsky Reviewed-by: Stephen Hemminger Test