public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Marioh mrs <marios.makris@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH 3/3] Changed nconv variable from long to int in /lib/bytes_by_prefix.c
Date: Tue, 15 May 2012 20:50:08 +0800	[thread overview]
Message-ID: <4FB25100.7030505@cn.fujitsu.com> (raw)
In-Reply-To: <CAMYrgfQTx7hYF4MJr-FfxwjW_Ce+iVJON4eowdfoo97pB8YH2Q@mail.gmail.com>

On 05/15/2012 08:36 PM, Marioh mrs wrote:

>>
>> At least you can take a look at here ./testcases/kernel/fs/doio/iogen.c
>>
>> Thanks,
>> Wanlong Gao
>>
> 
> Hello again,
> 
> This file usages have been replaced in the 2nd patch:
> [PATCH 2/3] Renamed /lib/str_to_bytes.c and /include str_to bytes.h
> 
> Below i have pasted the diff from the patch only for that particular file
> from the contents of the patch as sent in the list.
> 
> Thanks again :)


Oh, sorry I missed.

Any other comments?


Thanks,
Wanlong Gao

> 
> 
> diff --git a/testcases/kernel/fs/doio/iogen.c b/testcases/kernel/fs/doio/iogen.c
> index 167edbd..f594007 100644
> --- a/testcases/kernel/fs/doio/iogen.c
> +++ b/testcases/kernel/fs/doio/iogen.c
> @@ -61,7 +61,7 @@
>  #include "libkern.h"
>  #endif
>  #include "doio.h"
> -#include "str_to_bytes.h"
> +#include "bytes_by_prefix.h"
>  #include "string_to_tokens.h"
>  #include "open_flags.h"
>  #include "random_range.h"
> @@ -1555,7 +1555,7 @@ parse_cmdline(int argc, char **argv, char *opts)
>           break;
> 
>       case 'r':
> -           if ((Rawmult = str_to_bytes(optarg)) == -1 ||
> +           if ((Rawmult = bytes_by_prefix(optarg)) == -1 ||
>                         Rawmult < 11 || Rawmult % BSIZE) {
>               fprintf(stderr, "iogen%s:  Illegal -r arg (%s).  Must
> be > 0 and multipe of BSIZE (%d)\n",
>                       TagName, optarg, BSIZE);
> @@ -1587,7 +1587,7 @@ parse_cmdline(int argc, char **argv, char *opts)
>           break;
> 
>       case 't':
> -           if ((Mintrans = str_to_bytes(optarg)) == -1) {
> +           if ((Mintrans = bytes_by_prefix(optarg)) == -1) {
>               fprintf(stderr, "iogen%s:  Illegal -t arg (%s):  Must
> have the form num[bkm]\n", TagName, optarg);
>               exit(1);
>           }
> @@ -1595,7 +1595,7 @@ parse_cmdline(int argc, char **argv, char *opts)
>           break;
> 
>       case 'T':
> -           if ((Maxtrans = str_to_bytes(optarg)) == -1) {
> +           if ((Maxtrans = bytes_by_prefix(optarg)) == -1) {
>               fprintf(stderr, "iogen%s:  Illegal -T arg (%s):  Must
> have the form num[bkm]\n", TagName, optarg);
>               exit(1);
>           }
> @@ -1740,7 +1740,7 @@ parse_cmdline(int argc, char **argv, char *opts)
> 
>           if ((cp = strchr(argv[optind], ':')) != NULL) {
>               *cp = '\0';
> -               if ((len = str_to_bytes(argv[optind])) == -1) {
> +               if ((len = bytes_by_prefix(argv[optind])) == -1) {
>                   fprintf(stderr,
>                           "iogen%s:  illegal file length (%s) for file %s\n",
>                           TagName, argv[optind], cp+1);



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2012-05-15 12:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1336655089-26941-1-git-send-email-marios.makris@gmail.com>
2012-05-14  7:15 ` [LTP] [PATCH 1/3] Indentation and coding style fixes on /lib/str_to_bytes.c as well as /include/str_to_bytes.h Wanlong Gao
2012-05-16 14:23   ` Cyril Hrubis
     [not found] ` <1336655089-26941-2-git-send-email-marios.makris@gmail.com>
2012-05-14  7:16   ` [LTP] [PATCH 2/3] Renamed /lib/str_to_bytes.c and /include str_to bytes.h Wanlong Gao
     [not found] ` <1336655089-26941-3-git-send-email-marios.makris@gmail.com>
2012-05-14  7:24   ` [LTP] [PATCH 3/3] Changed nconv variable from long to int in /lib/bytes_by_prefix.c Wanlong Gao
2012-05-15 11:51     ` Marioh mrs
2012-05-15 12:02       ` Wanlong Gao
2012-05-15 12:36         ` Marioh mrs
2012-05-15 12:50           ` Wanlong Gao [this message]
2012-05-15 12:58             ` Marioh mrs

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=4FB25100.7030505@cn.fujitsu.com \
    --to=gaowanlong@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=marios.makris@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox