acl-plugin: "show acl-plugin acl" ACE# is truncated to 4 digits in output 97/15497/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 24 Oct 2018 10:51:43 +0000 (12:51 +0200)
committerDave Barach <openvpp@barachs.net>
Thu, 25 Oct 2018 15:17:09 +0000 (15:17 +0000)
commitdc8d35036f1d06193035ff4b6f161f2c1c17c35a
treee28cc5583e174fe4ea7af96bafc8e825b9a38b99
parent82b2776e314f91a0b0b503bade9720cbb47d87a9
acl-plugin: "show acl-plugin acl" ACE# is truncated to 4 digits in output

I was expecting "%4d" format string to exhibit the same behavior as
the one in C standard library, but rather than specifying _minimal_
width and expanding as necessary, it actually truncates the output.

Changing that to "%9d" should take care of pushing this surprising
difference in behavior into the domain of impossible.

Change-Id: Ia687137ca765bf9c1575af998ff11314010e81ad
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.c