aboutsummaryrefslogtreecommitdiff
path: root/libmpio/src
diff options
context:
space:
mode:
authorgermeier <germeier>2003-04-29 15:11:34 +0000
committergermeier <germeier>2003-04-29 15:11:34 +0000
commit82e0696fa84befaae8e93acd881c7978d8219f5f (patch)
treeeb5220b5333fddb005f4a9d157bdd2a044436b3e /libmpio/src
parent330785e8d7b3796bc1030c7f20539b56edd657b9 (diff)
downloadmpiosh-82e0696fa84befaae8e93acd881c7978d8219f5f.tar.gz
mpiosh-82e0696fa84befaae8e93acd881c7978d8219f5f.tar.bz2
mpiosh-82e0696fa84befaae8e93acd881c7978d8219f5f.zip
fix level for debug messages
Diffstat (limited to 'libmpio/src')
-rw-r--r--libmpio/src/ecc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libmpio/src/ecc.c b/libmpio/src/ecc.c
index 39e3a28..4082afe 100644
--- a/libmpio/src/ecc.c
+++ b/libmpio/src/ecc.c
@@ -1,5 +1,5 @@
/*
- * $Id: ecc.c,v 1.3 2003/04/27 12:08:21 germeier Exp $
+ * $Id: ecc.c,v 1.4 2003/04/29 15:11:35 germeier Exp $
*
* libmpio - a library for accessing Digit@lways MPIO players
* Copyright (C) 2002, 2003 Markus Germeier
@@ -213,7 +213,7 @@ mpio_ecc_256_check(BYTE *data, BYTE *ecc)
}
if (v) {
- debug("correctable error detected ... fixing the bit\n");
+ debugn(2, "correctable error detected ... fixing the bit\n");
line = get_bit(check[1], 7) * 128 +
get_bit(check[1], 5) * 64 +
get_bit(check[1], 3) * 32 +
@@ -225,12 +225,12 @@ mpio_ecc_256_check(BYTE *data, BYTE *ecc)
col = get_bit(check[2], 7) * 4 +
get_bit(check[2], 5) * 2 +
get_bit(check[2], 3);
- debug ("error in line: %d , col %d\n", line, col);
- debug ("defect byte is: %02x\n", data[line]);
+ debugn(3, "error in line: %d , col %d\n", line, col);
+ debugn(3, "defect byte is: %02x\n", data[line]);
data[line] ^= ( 1 << col);
- debug ("fixed byte is: %02x\n", data[line]);
+ debugn(3, "fixed byte is: %02x\n", data[line]);
} else {
- debug("uncorrectable error detected. Sorry you lose!\n");
+ debugn(2, "uncorrectable error detected. Sorry you lose!\n");
return 1;
}
}