summaryrefslogtreecommitdiffstats
path: root/sys/geom/eli
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-05-09 17:26:52 +0000
committereadler <eadler@FreeBSD.org>2012-05-09 17:26:52 +0000
commit58bd935b7274e6e390a3d858a84534798092708c (patch)
tree5a24c812fc48a199bd6647eaacf45a04fbe0cf1e /sys/geom/eli
parent3ec8c43aba7033113c1b0fbe801d81e37f9271e6 (diff)
downloadFreeBSD-src-58bd935b7274e6e390a3d858a84534798092708c.zip
FreeBSD-src-58bd935b7274e6e390a3d858a84534798092708c.tar.gz
Clarify error that geli generates
when it finds corrupt data. PR: kern/165695 Submitted by: Robert Simmons <rsimmons0@gmail.com> Reviewed by: pjd Approved by: cperciva MFC after: 1 week
Diffstat (limited to 'sys/geom/eli')
-rw-r--r--sys/geom/eli/g_eli_integrity.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/geom/eli/g_eli_integrity.c b/sys/geom/eli/g_eli_integrity.c
index 50f2a31..c029d8e 100644
--- a/sys/geom/eli/g_eli_integrity.c
+++ b/sys/geom/eli/g_eli_integrity.c
@@ -205,8 +205,8 @@ g_eli_auth_read_done(struct cryptop *crp)
* Report previous corruption if there was one.
*/
if (coroff != -1) {
- G_ELI_DEBUG(0, "%s: %jd bytes "
- "corrupted at offset %jd.",
+ G_ELI_DEBUG(0, "%s: Failed to authenticate %jd "
+ "bytes of data at offset %jd",
sc->sc_name, (intmax_t)corsize,
(intmax_t)coroff);
coroff = -1;
@@ -221,7 +221,8 @@ g_eli_auth_read_done(struct cryptop *crp)
}
/* Report previous corruption if there was one. */
if (coroff != -1) {
- G_ELI_DEBUG(0, "%s: %jd bytes corrupted at offset %jd.",
+ G_ELI_DEBUG(0, "%s: Failed to authenticate %jd "
+ "bytes of data at offset %jd",
sc->sc_name, (intmax_t)corsize, (intmax_t)coroff);
}
}
OpenPOWER on IntegriCloud