Commit 5e4b3f95 authored by Chengwei Yang's avatar Chengwei Yang
Browse files

Fix: '-g' conflicts with '-c' option and update help info



Check options conflict and exit gracefully if conflict occurred.

Before applying this patch
$ dlogutil -g -c
arc = 3, optind = 3 ,Kb 0, rotate 4
ioctl: Bad file descriptor

After applying this patch, it prints help info and exit.

Change-Id: I9133398d6f67cad6aadb6224beddd75ed06ef0dc
Signed-off-by: default avatarChengwei Yang <chengwei.yang@intel.com>
parent 4dc36c99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment