Re: [PATCH] Fix crash with btreplay -v

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 07 2007, Joshua Root wrote:
> tip->vfp is only initialised when verbose > 1, so we must only use it
> under the same circumstance.

Alan, I'll let you verify and commit btt/btreplay patches so we don't
step on each others feet.

> -- 
> Joshua Root,  jmr AT gelato.unsw.edu.au
> http://www.gelato.unsw.edu.au

>  btreplay/btreplay.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/btreplay/btreplay.c b/btreplay/btreplay.c
> index 89881cb..1808b35 100644
> --- a/btreplay/btreplay.c
> +++ b/btreplay/btreplay.c
> @@ -1327,7 +1327,7 @@ static void *replay_sub(void *arg)
>         set_replay_ready();
>         while (!is_send_done(tip) && tip->iterations--) {
>                 wait_iter_start();
> -               if (verbose)
> +               if (verbose > 1)
>                         fprintf(tip->vfp, "\n=== %d ===\n", tip->iterations);
>                 while (!is_send_done(tip) && next_bunch(tip, &bunch))
>                         process_bunch(tip, &bunch);


-- 
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-btrace" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux