summaryrefslogtreecommitdiffstats
path: root/sys/dev/iscsi
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-02-10 12:35:57 +0000
committered <ed@FreeBSD.org>2012-02-10 12:35:57 +0000
commit28b4a002d6c95bc9e26ea30871aa91c1cc4b3563 (patch)
tree38fefd1e5bde255db2d3eab529d481ce373dec71 /sys/dev/iscsi
parent7bf1094d6b76324d8ab7decb5dc0d06999a72842 (diff)
downloadFreeBSD-src-28b4a002d6c95bc9e26ea30871aa91c1cc4b3563.zip
FreeBSD-src-28b4a002d6c95bc9e26ea30871aa91c1cc4b3563.tar.gz
Remove direct access to si_name.
Code should just use the devtoname() function to obtain the name of a character device. Also add const keywords to pieces of code that need it to build properly. MFC after: 2 weeks
Diffstat (limited to 'sys/dev/iscsi')
-rw-r--r--sys/dev/iscsi/initiator/isc_sm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iscsi/initiator/isc_sm.c b/sys/dev/iscsi/initiator/isc_sm.c
index ae043c9..7f47e9f 100644
--- a/sys/dev/iscsi/initiator/isc_sm.c
+++ b/sys/dev/iscsi/initiator/isc_sm.c
@@ -652,13 +652,13 @@ static void
isc_add_sysctls(isc_session_t *sp)
{
debug_called(8);
- sdebug(6, "sid=%d %s", sp->sid, sp->dev->si_name);
+ sdebug(6, "sid=%d %s", sp->sid, devtoname(sp->dev));
sysctl_ctx_init(&sp->clist);
sp->oid = SYSCTL_ADD_NODE(&sp->clist,
SYSCTL_CHILDREN(sp->isc->oid),
OID_AUTO,
- sp->dev->si_name+5, // iscsi0
+ devtoname(sp->dev) + 5, // iscsi0
CTLFLAG_RD,
0,
"initiator");
OpenPOWER on IntegriCloud