From 7d92b803c4808c6e5c7e43f064e532eaf0ec0fbd Mon Sep 17 00:00:00 2001 From: crunchy Date: Thu, 19 Sep 2002 21:19:02 +0000 Subject: added more debug output --- mpiosh/callback.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/mpiosh/callback.c b/mpiosh/callback.c index 1a02b04..814059a 100644 --- a/mpiosh/callback.c +++ b/mpiosh/callback.c @@ -2,7 +2,7 @@ * * Author: Andreas Büsching * - * $Id: callback.c,v 1.12 2002/09/19 20:46:02 crunchy Exp $ + * $Id: callback.c,v 1.13 2002/09/19 21:19:02 crunchy Exp $ * * Copyright (C) 2001 Andreas Büsching * @@ -287,9 +287,15 @@ mpiosh_cmd_mget(char *args[]) if (!(error = regexec(®ex, fname, 0, NULL, 0))) { printf("getting '%s' ... \n", fname); - size = mpio_file_get(mpiosh.dev, mpiosh.card, - fname, mpiosh_callback_put); - if (mpiosh_cancel) break; + if ((size = mpio_file_get(mpiosh.dev, mpiosh.card, + fname, mpiosh_callback_put)) == -1) { + mpio_perror("error"); + break; + } + if (mpiosh_cancel) { + debug("operation cancelled by user\n"); + break; + } printf("\n"); } else { regerror(error, ®ex, errortext, 100); @@ -361,7 +367,11 @@ mpiosh_cmd_mput(char *args[]) break; } - if (mpiosh_cancel) break; + if (mpiosh_cancel) { + debug("operation cancelled by user\n"); + break; + } + printf("\n"); written=1; /* we did write something, so do mpio_sync afterwards */ } else { -- cgit v1.2.3