From 88e07d922d89a6c36502eab5c2729ead700d6e9c Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Tue, 9 Jul 2013 03:00:06 +0000 Subject: [PATCH] Use meaningful names when creating mmc/sd threads. This can be useful when we want to be able to identify which mmcsd is stuck. --- sys/dev/mmc/mmcsd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/mmc/mmcsd.c b/sys/dev/mmc/mmcsd.c index 8c936ce65c20..c28a5d3ec65b 100644 --- a/sys/dev/mmc/mmcsd.c +++ b/sys/dev/mmc/mmcsd.c @@ -199,7 +199,8 @@ mmcsd_attach(device_t dev) sc->running = 1; sc->suspend = 0; sc->eblock = sc->eend = 0; - kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "task: mmc/sd card"); + kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "%s: mmc/sd card", + device_get_nameunit(dev)); return (0); } @@ -260,7 +261,8 @@ mmcsd_resume(device_t dev) if (sc->running <= 0) { sc->running = 1; MMCSD_UNLOCK(sc); - kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "task: mmc/sd card"); + kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "%s: mmc/sd card", + device_get_nameunit(dev)); } else MMCSD_UNLOCK(sc); return (0);