Re: [PATCH v2 net-next 2/6] bridge: make flags sysfs interface a little bit more extensible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/19/2013 04:54 PM, Stephen Hemminger wrote:
On Fri, 19 Apr 2013 16:52:46 -0400
Vlad Yasevich <vyasevic@xxxxxxxxxx> wrote:


+static ssize_t show_flag(struct net_bridge_port *p, char *buf,
+			  unsigned long mask)
+{
+	return sprintf(buf, "%d\n", !!(p->flags & mask));
+}

Flags are bit, show in hex please.


I did not change the output format.  In fact, on second look
I can pull this change out as it isn't needed.

-vlad




[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux