mirror of https://gitee.com/openkylin/linux.git
[PATCH] USB ATM: line speed measured in Kb not Kib
Spotted by David Woodhouse. Signed-off-by: Duncan Sands <baldrick@free.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
16966f2ab7
commit
322a95bc8e
|
@ -427,7 +427,7 @@ static void cxacru_poll_status(struct cxacru_data *instance)
|
|||
atm_dev->link_rate = buf[CXINF_DOWNSTREAM_RATE] * 1000 / 424;
|
||||
atm_dev->signal = ATM_PHY_SIG_FOUND;
|
||||
|
||||
dev_info(dev, "ADSL line: up (%d Kib/s down | %d Kib/s up)\n",
|
||||
dev_info(dev, "ADSL line: up (%d kb/s down | %d kb/s up)\n",
|
||||
buf[CXINF_DOWNSTREAM_RATE], buf[CXINF_UPSTREAM_RATE]);
|
||||
break;
|
||||
|
||||
|
|
|
@ -480,7 +480,7 @@ static void speedtch_check_status(struct speedtch_instance_data *instance)
|
|||
atm_dev->signal = ATM_PHY_SIG_FOUND;
|
||||
|
||||
atm_info(usbatm,
|
||||
"ADSL line is up (%d Kib/s down | %d Kib/s up)\n",
|
||||
"ADSL line is up (%d kb/s down | %d kb/s up)\n",
|
||||
down_speed, up_speed);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue