diff options
author | crunchy <crunchy> | 2002-09-19 21:19:02 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2002-09-19 21:19:02 +0000 |
commit | 7d92b803c4808c6e5c7e43f064e532eaf0ec0fbd (patch) | |
tree | d412a9b80d6549cde5e236c1f1beccf47dc6dea3 | |
parent | 65007d1a9936514535896afa23614304c09b77c2 (diff) | |
download | mpiosh-7d92b803c4808c6e5c7e43f064e532eaf0ec0fbd.tar.gz mpiosh-7d92b803c4808c6e5c7e43f064e532eaf0ec0fbd.tar.bz2 mpiosh-7d92b803c4808c6e5c7e43f064e532eaf0ec0fbd.zip |
added more debug output
-rw-r--r-- | mpiosh/callback.c | 20 |
1 files 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 <crunchy@tzi.de> * - * $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 <crunchy@tzi.de> * @@ -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 { |