All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 3/3] syscalls/lseek10: cleanup && convert to new API
Date: Wed, 28 Jun 2017 18:18:22 +0200	[thread overview]
Message-ID: <20170628161822.GB27262@rei.lan> (raw)
In-Reply-To: <1498025539-24441-3-git-send-email-yangx.jy@cn.fujitsu.com>

Hi!
> +#define SAFE_MKNOD(pathname, mode, dev) \
> +	safe_mknod(__FILE__, __LINE__, (pathname), (mode), (dev))
> +
>  #endif /* SAFE_MACROS_H__ */
> diff --git a/lib/safe_macros.c b/lib/safe_macros.c
> index 3ef9266..7ca1849 100644
> --- a/lib/safe_macros.c
> +++ b/lib/safe_macros.c
> @@ -908,3 +908,17 @@ pid_t safe_setsid(const char *file, const int lineno)
>  
>  	return rval;
>  }
> +
> +int safe_mknod(const char *file, const int lineno, const char *pathname,
> +	mode_t mode, dev_t dev)
> +{
> +	int rval;
> +
> +	rval = mknod(pathname, mode, dev);
> +	if (rval == -1) {
> +		tst_brkm(TBROK | TERRNO, NULL,
> +			 "%s:%d: mknod() failed", file, lineno);

I've changed this line to include the parameters passed to the
safe_mknod() to be included in the error message as well and pushed the
whole patchset, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

      reply	other threads:[~2017-06-28 16:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-21  6:12 [LTP] [PATCH 1/3] syscalls/lseek07: cleanup && convert to new API Xiao Yang
2017-06-21  6:12 ` [LTP] [PATCH 2/3] syscalls/lseek08, 09: " Xiao Yang
2017-06-21  6:12 ` [LTP] [PATCH 3/3] syscalls/lseek10: " Xiao Yang
2017-06-28 16:18   ` Cyril Hrubis [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=20170628161822.GB27262@rei.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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.