diff options
author | David S. Miller <davem@davemloft.net> | 2010-02-28 22:23:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-28 22:23:06 -0500 |
commit | 47871889c601d8199c51a4086f77eebd77c29b0b (patch) | |
tree | 40cdcac3bff0ee40cc33dcca61d0577cdf965f77 /drivers/firmware/iscsi_ibft.c | |
parent | c16cc0b464b8876cfd57ce1c1dbcb6f9a6a0bce3 (diff) | |
parent | 30ff056c42c665b9ea535d8515890857ae382540 (diff) |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Conflicts:
drivers/firmware/iscsi_ibft.c
Diffstat (limited to 'drivers/firmware/iscsi_ibft.c')
-rw-r--r-- | drivers/firmware/iscsi_ibft.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/firmware/iscsi_ibft.c b/drivers/firmware/iscsi_ibft.c index 5aeb3b541c80..a3600e3ed0fa 100644 --- a/drivers/firmware/iscsi_ibft.c +++ b/drivers/firmware/iscsi_ibft.c | |||
@@ -380,7 +380,7 @@ static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry, | |||
380 | struct ibft_nic *nic = entry->nic; | 380 | struct ibft_nic *nic = entry->nic; |
381 | void *ibft_loc = entry->header; | 381 | void *ibft_loc = entry->header; |
382 | char *str = buf; | 382 | char *str = buf; |
383 | int val; | 383 | __be32 val; |
384 | 384 | ||
385 | if (!nic) | 385 | if (!nic) |
386 | return 0; | 386 | return 0; |
@@ -396,10 +396,8 @@ static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry, | |||
396 | str += sprintf_ipaddr(str, nic->ip_addr); | 396 | str += sprintf_ipaddr(str, nic->ip_addr); |
397 | break; | 397 | break; |
398 | case ibft_eth_subnet_mask: | 398 | case ibft_eth_subnet_mask: |
399 | val = ~((1 << (32-nic->subnet_mask_prefix))-1); | 399 | val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1)); |
400 | str += sprintf(str, NIPQUAD_FMT, | 400 | str += sprintf(str, "%pI4", &val); |
401 | (u8)(val >> 24), (u8)(val >> 16), | ||
402 | (u8)(val >> 8), (u8)(val)); | ||
403 | break; | 401 | break; |
404 | case ibft_eth_origin: | 402 | case ibft_eth_origin: |
405 | str += sprintf(str, "%d\n", nic->origin); | 403 | str += sprintf(str, "%d\n", nic->origin); |