tipc: remove tipc_snprintf
tipc_snprintf() was heavily utilized by the old netlink API which no longer exists (now netlink compat). In this patch we swap tipc_snprintf() to the identical scnprintf() in the only remaining occurrence. Signed-off-by: Richard Alpe <richard.alpe@ericsson.com> Reviewed-by: Erik Hugne <erik.hugne@ericsson.com> Reviewed-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
22ae7cff50
commit
941787b829
@@ -111,13 +111,13 @@ void tipc_media_addr_printf(char *buf, int len, struct tipc_media_addr *a)
|
||||
m_ptr = media_find_id(a->media_id);
|
||||
|
||||
if (m_ptr && !m_ptr->addr2str(a, addr_str, sizeof(addr_str)))
|
||||
ret = tipc_snprintf(buf, len, "%s(%s)", m_ptr->name, addr_str);
|
||||
ret = scnprintf(buf, len, "%s(%s)", m_ptr->name, addr_str);
|
||||
else {
|
||||
u32 i;
|
||||
|
||||
ret = tipc_snprintf(buf, len, "UNKNOWN(%u)", a->media_id);
|
||||
ret = scnprintf(buf, len, "UNKNOWN(%u)", a->media_id);
|
||||
for (i = 0; i < sizeof(a->value); i++)
|
||||
ret += tipc_snprintf(buf - ret, len + ret,
|
||||
ret += scnprintf(buf - ret, len + ret,
|
||||
"-%02x", a->value[i]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user