Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
87ecd5cd
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
87ecd5cd
编写于
1月 01, 2008
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ACPI: add missing prink prefix strings
Signed-off-by:
N
Len Brown
<
len.brown@intel.com
>
上级
ee1ce6fc
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
5 deletion
+5
-5
drivers/acpi/scan.c
drivers/acpi/scan.c
+5
-5
未找到文件。
drivers/acpi/scan.c
浏览文件 @
87ecd5cd
...
@@ -59,7 +59,7 @@ static int create_modalias(struct acpi_device *acpi_dev, char *modalias,
...
@@ -59,7 +59,7 @@ static int create_modalias(struct acpi_device *acpi_dev, char *modalias,
count
=
snprintf
(
&
modalias
[
len
],
size
,
"%s:"
,
count
=
snprintf
(
&
modalias
[
len
],
size
,
"%s:"
,
cid_list
->
id
[
i
].
value
);
cid_list
->
id
[
i
].
value
);
if
(
count
<
0
||
count
>=
size
)
{
if
(
count
<
0
||
count
>=
size
)
{
printk
(
KERN_ERR
"acpi:
%s cid[%i] exceeds event buffer size"
,
printk
(
KERN_ERR
PREFIX
"
%s cid[%i] exceeds event buffer size"
,
acpi_dev
->
pnp
.
device_name
,
i
);
acpi_dev
->
pnp
.
device_name
,
i
);
break
;
break
;
}
}
...
@@ -453,7 +453,7 @@ static int acpi_device_register(struct acpi_device *device,
...
@@ -453,7 +453,7 @@ static int acpi_device_register(struct acpi_device *device,
device
->
dev
.
release
=
&
acpi_device_release
;
device
->
dev
.
release
=
&
acpi_device_release
;
result
=
device_add
(
&
device
->
dev
);
result
=
device_add
(
&
device
->
dev
);
if
(
result
)
{
if
(
result
)
{
printk
(
"Error adding device %s"
,
device
->
dev
.
bus_id
);
printk
(
KERN_ERR
PREFIX
"Error adding device %s"
,
device
->
dev
.
bus_id
);
goto
end
;
goto
end
;
}
}
...
@@ -956,7 +956,7 @@ static void acpi_device_set_id(struct acpi_device *device,
...
@@ -956,7 +956,7 @@ static void acpi_device_set_id(struct acpi_device *device,
case
ACPI_BUS_TYPE_DEVICE
:
case
ACPI_BUS_TYPE_DEVICE
:
status
=
acpi_get_object_info
(
handle
,
&
buffer
);
status
=
acpi_get_object_info
(
handle
,
&
buffer
);
if
(
ACPI_FAILURE
(
status
))
{
if
(
ACPI_FAILURE
(
status
))
{
printk
(
"%s: Error reading device info
\n
"
,
__FUNCTION__
);
printk
(
KERN_ERR
PREFIX
"%s: Error reading device info
\n
"
,
__FUNCTION__
);
return
;
return
;
}
}
...
@@ -1026,7 +1026,7 @@ static void acpi_device_set_id(struct acpi_device *device,
...
@@ -1026,7 +1026,7 @@ static void acpi_device_set_id(struct acpi_device *device,
if
(
device
->
pnp
.
cid_list
)
if
(
device
->
pnp
.
cid_list
)
memcpy
(
device
->
pnp
.
cid_list
,
cid_list
,
cid_list
->
size
);
memcpy
(
device
->
pnp
.
cid_list
,
cid_list
,
cid_list
->
size
);
else
else
printk
(
KERN_ERR
"Memory allocation error
\n
"
);
printk
(
KERN_ERR
PREFIX
"Memory allocation error
\n
"
);
}
}
kfree
(
buffer
.
pointer
);
kfree
(
buffer
.
pointer
);
...
@@ -1050,7 +1050,7 @@ static int acpi_device_set_context(struct acpi_device *device, int type)
...
@@ -1050,7 +1050,7 @@ static int acpi_device_set_context(struct acpi_device *device, int type)
acpi_bus_data_handler
,
device
);
acpi_bus_data_handler
,
device
);
if
(
ACPI_FAILURE
(
status
))
{
if
(
ACPI_FAILURE
(
status
))
{
printk
(
"Error attaching device data
\n
"
);
printk
(
KERN_ERR
PREFIX
"Error attaching device data
\n
"
);
result
=
-
ENODEV
;
result
=
-
ENODEV
;
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录