diff options
author | obrien <obrien@FreeBSD.org> | 2005-08-10 06:25:41 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2005-08-10 06:25:41 +0000 |
commit | 0875ef67819c724c499d69258fba7083ef97a46c (patch) | |
tree | 5336c1ae1f40c0a507b03eef0c10e241991b7be7 /sys/netgraph/ng_fec.c | |
parent | 57f686d55c645312b91dbd790ae7c580dff78b30 (diff) | |
download | FreeBSD-src-0875ef67819c724c499d69258fba7083ef97a46c.zip FreeBSD-src-0875ef67819c724c499d69258fba7083ef97a46c.tar.gz |
Use the ISO standard function variable vs. a GCC'ism.
Diffstat (limited to 'sys/netgraph/ng_fec.c')
-rw-r--r-- | sys/netgraph/ng_fec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netgraph/ng_fec.c b/sys/netgraph/ng_fec.c index 463aeb1..9cb1623 100644 --- a/sys/netgraph/ng_fec.c +++ b/sys/netgraph/ng_fec.c @@ -297,7 +297,7 @@ ng_fec_get_unit(int *unit) } bit = ffs(ng_fec_units[index]) - 1; KASSERT(bit >= 0 && bit <= UNITS_BITSPERWORD - 1, - ("%s: word=%d bit=%d", __FUNCTION__, ng_fec_units[index], bit)); + ("%s: word=%d bit=%d", __func__, ng_fec_units[index], bit)); ng_fec_units[index] &= ~(1 << bit); *unit = (index * UNITS_BITSPERWORD) + bit; ng_units_in_use++; @@ -317,9 +317,9 @@ ng_fec_free_unit(int unit) bit = unit % UNITS_BITSPERWORD; mtx_lock(&ng_fec_mtx); KASSERT(index < ng_fec_units_len, - ("%s: unit=%d len=%d", __FUNCTION__, unit, ng_fec_units_len)); + ("%s: unit=%d len=%d", __func__, unit, ng_fec_units_len)); KASSERT((ng_fec_units[index] & (1 << bit)) == 0, - ("%s: unit=%d is free", __FUNCTION__, unit)); + ("%s: unit=%d is free", __func__, unit)); ng_fec_units[index] |= (1 << bit); /* * XXX We could think about reducing the size of ng_fec_units[] |