[CRIU] [PATCH 1/2] crit: Get rid of --format option

Ruslan Kuprieiev kupruser at gmail.com
Wed Jan 28 06:37:02 PST 2015


On 01/28/2015 04:15 PM, Pavel Emelyanov wrote:
> I plan to mark some fields as IP address and print them respectively.
> The --format hex is not nice switch for this and introducing one more
> (--format hex ipadd) is too bad.
>
> So let's fix the cirt API to be simple and stupid. By default crit
> generates canonical one-line JSON. With --nice option it splits the
> output into lines, adds indentation and prints hex as hex and IP as
> IP.
>
> Signed-off-by: Pavel Emelyanov<xemul at parallels.com>
> ---
>   crit                     | 15 ++++-----------
>   pycriu/images/images.py  | 24 ++++++++++++------------
>   pycriu/images/pb2dict.py | 16 ++++++----------
>   3 files changed, 22 insertions(+), 33 deletions(-)
Acked-by: Ruslan Kuprieiev <kupruser at gmail.com>


More information about the CRIU mailing list