mirror of https://github.com/proski/madwifi
Fix format string bugs.
Closes: #1999 git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3726 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
3ecbaecf60
commit
0a1bf29ca4
|
@ -448,7 +448,7 @@ ath_hal_lookup_register_name(struct ath_hal *ah, char *buf, int buflen,
|
|||
if (static_label) {
|
||||
if (strncmp(static_label, "ATH5K_", 6) == 0)
|
||||
static_label += 6;
|
||||
snprintf(buf, buflen, static_label);
|
||||
snprintf(buf, buflen, "%s", static_label);
|
||||
return AH_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -380,7 +380,7 @@ ieee80211_load_module(const char *modname)
|
|||
{
|
||||
#ifdef CONFIG_KMOD
|
||||
int rv;
|
||||
rv = request_module(modname);
|
||||
rv = request_module("%s", modname);
|
||||
if (rv < 0)
|
||||
printk(KERN_ERR "failed to automatically load module: %s; " \
|
||||
"errno: %d\n", modname, rv);
|
||||
|
|
Loading…
Reference in New Issue