From 70c554eb583caaedeebc94c8af44168831ce8167 Mon Sep 17 00:00:00 2001 From: germeier Date: Fri, 23 Apr 2004 19:21:07 +0000 Subject: don't dump core if internal memory is not available --- mpiosh/callback.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mpiosh') diff --git a/mpiosh/callback.c b/mpiosh/callback.c index e7d2865..20d8112 100644 --- a/mpiosh/callback.c +++ b/mpiosh/callback.c @@ -2,7 +2,7 @@ * * Author: Andreas Büsching * - * $Id: callback.c,v 1.47 2003/10/19 21:06:35 germeier Exp $ + * $Id: callback.c,v 1.48 2004/04/23 19:21:08 germeier Exp $ * * Copyright (C) 2001 Andreas Büsching * @@ -834,13 +834,16 @@ void mpiosh_cmd_health(char *args[]) { mpio_health_t health; - int i, lost; + int i, lost, r; UNUSED(args); MPIOSH_CHECK_CONNECTION_CLOSED; - mpio_health(mpiosh.dev, mpiosh.card, &health); + if ((r=mpio_health(mpiosh.dev, mpiosh.card, &health)) != MPIO_OK) { + printf("error: %s\n", mpio_strerror(r)); + return; + } if (mpiosh.card == MPIO_INTERNAL_MEM) { lost=0; -- cgit v1.2.3