Merge "netfilter: Change %p to %pK in debug messages"
This commit is contained in:
commit
bcea61c858
1 changed files with 9 additions and 9 deletions
|
@ -237,7 +237,7 @@ EXPORT_SYMBOL_GPL(nf_ct_invert_tuple);
|
||||||
static void
|
static void
|
||||||
clean_from_lists(struct nf_conn *ct)
|
clean_from_lists(struct nf_conn *ct)
|
||||||
{
|
{
|
||||||
pr_debug("clean_from_lists(%p)\n", ct);
|
pr_debug("clean_from_lists(%pK)\n", ct);
|
||||||
hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode);
|
hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode);
|
||||||
hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode);
|
hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode);
|
||||||
|
|
||||||
|
@ -330,7 +330,7 @@ destroy_conntrack(struct nf_conntrack *nfct)
|
||||||
struct net *net = nf_ct_net(ct);
|
struct net *net = nf_ct_net(ct);
|
||||||
struct nf_conntrack_l4proto *l4proto;
|
struct nf_conntrack_l4proto *l4proto;
|
||||||
|
|
||||||
pr_debug("destroy_conntrack(%p)\n", ct);
|
pr_debug("destroy_conntrack(%pK)\n", ct);
|
||||||
NF_CT_ASSERT(atomic_read(&nfct->use) == 0);
|
NF_CT_ASSERT(atomic_read(&nfct->use) == 0);
|
||||||
NF_CT_ASSERT(!timer_pending(&ct->timeout));
|
NF_CT_ASSERT(!timer_pending(&ct->timeout));
|
||||||
|
|
||||||
|
@ -361,7 +361,7 @@ destroy_conntrack(struct nf_conntrack *nfct)
|
||||||
if (ct->master)
|
if (ct->master)
|
||||||
nf_ct_put(ct->master);
|
nf_ct_put(ct->master);
|
||||||
|
|
||||||
pr_debug("destroy_conntrack: returning ct=%p to slab\n", ct);
|
pr_debug("destroy_conntrack: returning ct=%pK to slab\n", ct);
|
||||||
nf_conntrack_free(ct);
|
nf_conntrack_free(ct);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -629,7 +629,7 @@ __nf_conntrack_confirm(struct sk_buff *skb)
|
||||||
* confirmed us.
|
* confirmed us.
|
||||||
*/
|
*/
|
||||||
NF_CT_ASSERT(!nf_ct_is_confirmed(ct));
|
NF_CT_ASSERT(!nf_ct_is_confirmed(ct));
|
||||||
pr_debug("Confirming conntrack %p\n", ct);
|
pr_debug("Confirming conntrack %pK\n", ct);
|
||||||
/* We have to check the DYING flag after unlink to prevent
|
/* We have to check the DYING flag after unlink to prevent
|
||||||
* a race against nf_ct_get_next_corpse() possibly called from
|
* a race against nf_ct_get_next_corpse() possibly called from
|
||||||
* user context, else we insert an already 'dead' hash, blocking
|
* user context, else we insert an already 'dead' hash, blocking
|
||||||
|
@ -972,7 +972,7 @@ init_conntrack(struct net *net, struct nf_conn *tmpl,
|
||||||
spin_lock(&nf_conntrack_expect_lock);
|
spin_lock(&nf_conntrack_expect_lock);
|
||||||
exp = nf_ct_find_expectation(net, zone, tuple);
|
exp = nf_ct_find_expectation(net, zone, tuple);
|
||||||
if (exp) {
|
if (exp) {
|
||||||
pr_debug("conntrack: expectation arrives ct=%p exp=%p\n",
|
pr_debug("conntrack: expectation arrives ct=%pK exp=%pK\n",
|
||||||
ct, exp);
|
ct, exp);
|
||||||
/* Welcome, Mr. Bond. We've been expecting you... */
|
/* Welcome, Mr. Bond. We've been expecting you... */
|
||||||
__set_bit(IPS_EXPECTED_BIT, &ct->status);
|
__set_bit(IPS_EXPECTED_BIT, &ct->status);
|
||||||
|
@ -1063,14 +1063,14 @@ resolve_normal_ct(struct net *net, struct nf_conn *tmpl,
|
||||||
} else {
|
} else {
|
||||||
/* Once we've had two way comms, always ESTABLISHED. */
|
/* Once we've had two way comms, always ESTABLISHED. */
|
||||||
if (test_bit(IPS_SEEN_REPLY_BIT, &ct->status)) {
|
if (test_bit(IPS_SEEN_REPLY_BIT, &ct->status)) {
|
||||||
pr_debug("nf_conntrack_in: normal packet for %p\n", ct);
|
pr_debug("nf_conntrack_in: normal packet for %pK\n", ct);
|
||||||
*ctinfo = IP_CT_ESTABLISHED;
|
*ctinfo = IP_CT_ESTABLISHED;
|
||||||
} else if (test_bit(IPS_EXPECTED_BIT, &ct->status)) {
|
} else if (test_bit(IPS_EXPECTED_BIT, &ct->status)) {
|
||||||
pr_debug("nf_conntrack_in: related packet for %p\n",
|
pr_debug("nf_conntrack_in: related packet for %pK\n",
|
||||||
ct);
|
ct);
|
||||||
*ctinfo = IP_CT_RELATED;
|
*ctinfo = IP_CT_RELATED;
|
||||||
} else {
|
} else {
|
||||||
pr_debug("nf_conntrack_in: new packet for %p\n", ct);
|
pr_debug("nf_conntrack_in: new packet for %pK\n", ct);
|
||||||
*ctinfo = IP_CT_NEW;
|
*ctinfo = IP_CT_NEW;
|
||||||
}
|
}
|
||||||
*set_reply = 0;
|
*set_reply = 0;
|
||||||
|
@ -1212,7 +1212,7 @@ void nf_conntrack_alter_reply(struct nf_conn *ct,
|
||||||
/* Should be unconfirmed, so not in hash table yet */
|
/* Should be unconfirmed, so not in hash table yet */
|
||||||
NF_CT_ASSERT(!nf_ct_is_confirmed(ct));
|
NF_CT_ASSERT(!nf_ct_is_confirmed(ct));
|
||||||
|
|
||||||
pr_debug("Altering reply tuple of %p to ", ct);
|
pr_debug("Altering reply tuple of %pK to ", ct);
|
||||||
nf_ct_dump_tuple(newreply);
|
nf_ct_dump_tuple(newreply);
|
||||||
|
|
||||||
ct->tuplehash[IP_CT_DIR_REPLY].tuple = *newreply;
|
ct->tuplehash[IP_CT_DIR_REPLY].tuple = *newreply;
|
||||||
|
|
Loading…
Add table
Reference in a new issue