/* Convert bitmask of attributes to a character string  */
char* nl_object_attrs2str(struct nl_object *obj, uint32_t attrs, char *buf, size_t len)
/* Convert bitmask of attributes to a character string  */
char* nl_object_attrs2str(struct nl_object *obj, uint32_t attrs, char *buf, size_t len)
{
	struct nl_object_ops *ops = obj_ops(obj);
	if (ops->oo_attrs2str != NULL)
		return ops->oo_attrs2str(attrs, buf, len);
	else {
		memset(buf, 0, len);
		return buf;
	}
}