[PATCH phosphor-host-ipmid] Reduce prints to journald from ipmi but keep ability to trace

Patrick Williams patrick at stwcx.xyz
Fri Oct 23 09:11:13 AEDT 2015


On Thu, Oct 22, 2015 at 01:41:13PM -0500, OpenBMC Patches wrote:
> From: Chris Austen <austenc at us.ibm.com>
> 
> ---
>  ipmid.C | 91 ++++++++++++++++++++++++++++++++++++++---------------------------
>  ipmid.H |  3 +++
>  2 files changed, 56 insertions(+), 38 deletions(-)
> 
> diff --git a/ipmid.C b/ipmid.C
> index 4f0831e..34d29aa 100644
> --- a/ipmid.C
> +++ b/ipmid.C
> @@ -15,6 +15,16 @@
>  
>  sd_bus *bus = NULL;
>  
> +void print_usage(void) {
> +  fprintf(stderr, "Options:  [-c mask]\n");
> +  fprintf(stderr, "    mask : 0x01 - Print ipmi packets\n");
> +  fprintf(stderr, "    mask : 0x02 - Print DBUS operations\n");
> +  fprintf(stderr, "    mask : 0x04 - Print ipmi command details\n");
> +  fprintf(stderr, "    mask : 0xFF - Print all trace\n");
> +}
> +
> +
> +

Why -c?  This looks like it should be -d as in "debug".

-- 
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20151022/0ef3dc36/attachment.sig>


More information about the openbmc mailing list