Searched refs:fmt_dec (Results 1 – 1 of 1) sorted by relevance
| /Linux-v4.19/net/core/ |
| D | net-sysfs.c | 35 static const char fmt_dec[] = "%d\n"; variable 111 NETDEVICE_SHOW_RO(dev_port, fmt_dec); 112 NETDEVICE_SHOW_RO(addr_assign_type, fmt_dec); 113 NETDEVICE_SHOW_RO(addr_len, fmt_dec); 114 NETDEVICE_SHOW_RO(ifindex, fmt_dec); 115 NETDEVICE_SHOW_RO(type, fmt_dec); 116 NETDEVICE_SHOW_RO(link_mode, fmt_dec); 123 return sprintf(buf, fmt_dec, dev_get_iflink(ndev)); in iflink_show() 129 return sprintf(buf, fmt_dec, dev->name_assign_type); in format_name_assign_type() 191 return sprintf(buf, fmt_dec, !!netif_carrier_ok(netdev)); in carrier_show() [all …]
|