All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Bur <cyril.bur@au1.ibm.com>
To: Joel Stanley <joel@jms.id.au>
Cc: OpenBMC Patches <openbmc-patches@stwcx.xyz>,
	OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Re: [PATCH btbridge v2 1/3] Update usage message
Date: Thu, 10 Dec 2015 15:33:45 +1100	[thread overview]
Message-ID: <20151210153345.08156645@camb691> (raw)
In-Reply-To: <CACPK8Xfx+hqgaSkR8Ad-O4Rm8jdxYtzfvoUOfdmB4XgcZmse1Q@mail.gmail.com>

On Thu, 10 Dec 2015 11:33:23 +1030
Joel Stanley <joel@jms.id.au> wrote:

> On Wed, Dec 9, 2015 at 4:40 PM, OpenBMC Patches
> <openbmc-patches@stwcx.xyz> wrote:
> > From: Cyril Bur <cyril.bur@au1.ibm.com>
> >
> > ---
> >  btbridged.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/btbridged.c b/btbridged.c
> > index 115ae63..ab4880c 100644
> > --- a/btbridged.c
> > +++ b/btbridged.c
> > @@ -584,7 +584,8 @@ out:
> >
> >  static void usage(const char *name)
> >  {
> > -       fprintf(stderr, "Usage %s\n", name);
> > +       fprintf(stderr, "Usage %s [ --debug | --verbose ]\n", name);
> > +       fprintf(stderr, "\t--debug\t Implies --verbose\n\t Dumps entire message contents to console\n");  
> 
> I don't know what this means. What's the difference between debug and verbose?
> 

The initial idea was that verbose doesn't actually do anything but print more
info. debug does actually do extra work. I agree though that from the
users perspective debug just prints more... and they won't care about the
distinction I'm making about added work or not.

> It might be more discoverable to support multiple levels of verbosity.
> -v for verbose, -vv for what you term "debug".

Good idea, I'll add to pull request

> 
> >         fprintf(stderr, "\t--verbose\t Be verbose\n\n");
> >  }
> >
> > --
> > 2.6.3
> >
> >
> > _______________________________________________
> > openbmc mailing list
> > openbmc@lists.ozlabs.org
> > https://lists.ozlabs.org/listinfo/openbmc  
> 

  reply	other threads:[~2015-12-10  4:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-09  6:10 [PATCH btbridge v2 0/3] Add timestamps to output messages OpenBMC Patches
2015-12-09  6:10 ` [PATCH btbridge v2 1/3] Update usage message OpenBMC Patches
2015-12-10  1:03   ` Joel Stanley
2015-12-10  4:33     ` Cyril Bur [this message]
2015-12-09  6:10 ` [PATCH btbridge v2 2/3] Actually set the verbose flag with --debug OpenBMC Patches
2015-12-09  6:10 ` [PATCH btbridge v2 3/3] Improve debugging output, timestamps and syslog OpenBMC Patches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151210153345.08156645@camb691 \
    --to=cyril.bur@au1.ibm.com \
    --cc=joel@jms.id.au \
    --cc=openbmc-patches@stwcx.xyz \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.