Re: [PATCH] iprule: Fix destination prefix output

2018-08-28 Thread Luca Boccassi
On Tue, 2018-08-28 at 16:27 +0200, Stefan Bader wrote: > When adding support for JSON output the new code for printing > the destination prefix adds a stray blank character before > the bitmask. This causes some user-space parsing to fail. > > Current output: >   ...: from x.x.x.x/l to y.y.y.y /l

[PATCH] iprule: Fix destination prefix output

2018-08-28 Thread Stefan Bader
When adding support for JSON output the new code for printing the destination prefix adds a stray blank character before the bitmask. This causes some user-space parsing to fail. Current output: ...: from x.x.x.x/l to y.y.y.y /l Previous output: ...: from x.x.x.x/l to y.y.y.y/l Fixes: 0dd4ccc