All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Samuel <chris@csamuel.org>
To: kreijack@libero.it
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [TRIVIAL][PATCH] Improve error handling in the btrfs command
Date: Tue, 21 Dec 2010 11:29:48 +1100	[thread overview]
Message-ID: <4D0FF4FC.9060502@csamuel.org> (raw)
In-Reply-To: <201012202353.29222.kreijack@libero.it>

On 21/12/10 09:53, Goffredo Baroncelli wrote:

> Some time I needed to add other info, so perror(3) may not be sufficient..

Ah, of course, and you cannot rely on safely snprintf()'ing
something into the string would get passed to perror() because
that could easily change errno if something went wrong internally.

All the best,
Chris
-- 
 Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC

      reply	other threads:[~2010-12-21  0:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-20 20:06 [TRIVIAL][PATCH] Improve error handling in the btrfs command Goffredo Baroncelli
2010-12-20 22:42 ` Chris Samuel
2010-12-20 22:53   ` Goffredo Baroncelli
2010-12-21  0:29     ` Chris Samuel [this message]

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=4D0FF4FC.9060502@csamuel.org \
    --to=chris@csamuel.org \
    --cc=kreijack@libero.it \
    --cc=linux-btrfs@vger.kernel.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.