Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
27a22096
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
27a22096
编写于
8月 07, 2016
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
iwlwifi: use %pd
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
f66debf1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
16 deletion
+10
-16
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
+2
-4
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
+7
-9
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
+1
-3
未找到文件。
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
浏览文件 @
27a22096
...
@@ -2422,14 +2422,12 @@ int iwl_dbgfs_register(struct iwl_priv *priv, struct dentry *dbgfs_dir)
...
@@ -2422,14 +2422,12 @@ int iwl_dbgfs_register(struct iwl_priv *priv, struct dentry *dbgfs_dir)
*/
*/
if
(
priv
->
mac80211_registered
)
{
if
(
priv
->
mac80211_registered
)
{
char
buf
[
100
];
char
buf
[
100
];
struct
dentry
*
mac80211_dir
,
*
dev_dir
,
*
root_dir
;
struct
dentry
*
mac80211_dir
,
*
dev_dir
;
dev_dir
=
dbgfs_dir
->
d_parent
;
dev_dir
=
dbgfs_dir
->
d_parent
;
root_dir
=
dev_dir
->
d_parent
;
mac80211_dir
=
priv
->
hw
->
wiphy
->
debugfsdir
;
mac80211_dir
=
priv
->
hw
->
wiphy
->
debugfsdir
;
snprintf
(
buf
,
100
,
"../../%s/%s"
,
root_dir
->
d_name
.
name
,
snprintf
(
buf
,
100
,
"../../%pd2"
,
dev_dir
);
dev_dir
->
d_name
.
name
);
if
(
!
debugfs_create_symlink
(
"iwlwifi"
,
mac80211_dir
,
buf
))
if
(
!
debugfs_create_symlink
(
"iwlwifi"
,
mac80211_dir
,
buf
))
goto
err
;
goto
err
;
...
...
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
浏览文件 @
27a22096
...
@@ -1547,8 +1547,8 @@ void iwl_mvm_vif_dbgfs_register(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
...
@@ -1547,8 +1547,8 @@ void iwl_mvm_vif_dbgfs_register(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
mvmvif
->
dbgfs_dir
=
debugfs_create_dir
(
"iwlmvm"
,
dbgfs_dir
);
mvmvif
->
dbgfs_dir
=
debugfs_create_dir
(
"iwlmvm"
,
dbgfs_dir
);
if
(
!
mvmvif
->
dbgfs_dir
)
{
if
(
!
mvmvif
->
dbgfs_dir
)
{
IWL_ERR
(
mvm
,
"Failed to create debugfs directory under %
s
\n
"
,
IWL_ERR
(
mvm
,
"Failed to create debugfs directory under %
pd
\n
"
,
dbgfs_dir
->
d_name
.
name
);
dbgfs_dir
);
return
;
return
;
}
}
...
@@ -1602,17 +1602,15 @@ void iwl_mvm_vif_dbgfs_register(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
...
@@ -1602,17 +1602,15 @@ void iwl_mvm_vif_dbgfs_register(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
* find
* find
* netdev:wlan0 -> ../../../ieee80211/phy0/netdev:wlan0/iwlmvm/
* netdev:wlan0 -> ../../../ieee80211/phy0/netdev:wlan0/iwlmvm/
*/
*/
snprintf
(
buf
,
100
,
"../../../%s/%s/%s/%s"
,
snprintf
(
buf
,
100
,
"../../../%pd3/%pd"
,
dbgfs_dir
->
d_parent
->
d_parent
->
d_name
.
name
,
dbgfs_dir
,
dbgfs_dir
->
d_parent
->
d_name
.
name
,
mvmvif
->
dbgfs_dir
);
dbgfs_dir
->
d_name
.
name
,
mvmvif
->
dbgfs_dir
->
d_name
.
name
);
mvmvif
->
dbgfs_slink
=
debugfs_create_symlink
(
dbgfs_dir
->
d_name
.
name
,
mvmvif
->
dbgfs_slink
=
debugfs_create_symlink
(
dbgfs_dir
->
d_name
.
name
,
mvm
->
debugfs_dir
,
buf
);
mvm
->
debugfs_dir
,
buf
);
if
(
!
mvmvif
->
dbgfs_slink
)
if
(
!
mvmvif
->
dbgfs_slink
)
IWL_ERR
(
mvm
,
"Can't create debugfs symbolic link under %
s
\n
"
,
IWL_ERR
(
mvm
,
"Can't create debugfs symbolic link under %
pd
\n
"
,
dbgfs_dir
->
d_name
.
name
);
dbgfs_dir
);
return
;
return
;
err:
err:
IWL_ERR
(
mvm
,
"Can't create debugfs entity
\n
"
);
IWL_ERR
(
mvm
,
"Can't create debugfs entity
\n
"
);
...
...
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
浏览文件 @
27a22096
...
@@ -1564,9 +1564,7 @@ int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir)
...
@@ -1564,9 +1564,7 @@ int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir)
* Create a symlink with mac80211. It will be removed when mac80211
* Create a symlink with mac80211. It will be removed when mac80211
* exists (before the opmode exists which removes the target.)
* exists (before the opmode exists which removes the target.)
*/
*/
snprintf
(
buf
,
100
,
"../../%s/%s"
,
snprintf
(
buf
,
100
,
"../../%pd2"
,
dbgfs_dir
->
d_parent
);
dbgfs_dir
->
d_parent
->
d_parent
->
d_name
.
name
,
dbgfs_dir
->
d_parent
->
d_name
.
name
);
if
(
!
debugfs_create_symlink
(
"iwlwifi"
,
mvm
->
hw
->
wiphy
->
debugfsdir
,
buf
))
if
(
!
debugfs_create_symlink
(
"iwlwifi"
,
mvm
->
hw
->
wiphy
->
debugfsdir
,
buf
))
goto
err
;
goto
err
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录