diff options
author | sbruno <sbruno@FreeBSD.org> | 2014-09-11 22:39:27 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2014-09-11 22:39:27 +0000 |
commit | d549cc8e6323379975f12c89425ea778808d11cb (patch) | |
tree | 63015a9c803a488cd5699360e650672efb494262 /sys/geom | |
parent | f77eeffc087581eab47cb739bbe9642b24a190eb (diff) | |
download | FreeBSD-src-d549cc8e6323379975f12c89425ea778808d11cb.zip FreeBSD-src-d549cc8e6323379975f12c89425ea778808d11cb.tar.gz |
Add device name used in geom_map verbose output. This helps when using
geom_map with multiple flash/spi devices.
Phabric: https://reviews.freebsd.org/D766
Reviewed by: adrian
MFC after: 2 weeks
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_map.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/geom/geom_map.c b/sys/geom/geom_map.c index afc26b6..a5db2a5 100644 --- a/sys/geom/geom_map.c +++ b/sys/geom/geom_map.c @@ -153,8 +153,8 @@ find_marker(struct g_consumer *cp, const char *line, off_t *offset) return (1); if (bootverbose) { - printf("MAP: search key \"%s\" from 0x%jx, step 0x%jx\n", - search_key, (intmax_t)search_start, (intmax_t)search_step); + printf("MAP: search %s for key \"%s\" from 0x%jx, step 0x%jx\n", + cp->geom->name, search_key, (intmax_t)search_start, (intmax_t)search_step); } /* error if search_key is empty */ @@ -321,9 +321,9 @@ g_map_parse_part(struct g_class *mp, struct g_provider *pp, } if (bootverbose) { - printf("MAP: %jxx%jx, data=%jxx%jx " + printf("MAP: %s: %jxx%jx, data=%jxx%jx " "\"/dev/map/%s\"\n", - (intmax_t)start, (intmax_t)size, (intmax_t)offset, + cp->geom->name, (intmax_t)start, (intmax_t)size, (intmax_t)offset, (intmax_t)dsize, name); } |