c2ae9f2cc8448a4dd042f51de005fa1658b0ea6b
[openwrt.git] / target / linux / ps3 / patches-2.6.25 / 100-ps3-system-bus-quiet-match-output.patch
1 Subject: PS3: Quiet system bus match output
2
3 Reduce the verbosity of the output from ps3_system_bus_match().
4
5 Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
6 ---
7 arch/powerpc/platforms/ps3/system-bus.c | 21 +++++++++++++--------
8 1 file changed, 13 insertions(+), 8 deletions(-)
9
10 --- a/arch/powerpc/platforms/ps3/system-bus.c
11 +++ b/arch/powerpc/platforms/ps3/system-bus.c
12 @@ -349,9 +349,14 @@
13
14 result = dev->match_id == drv->match_id;
15
16 - pr_info("%s:%d: dev=%u(%s), drv=%u(%s): %s\n", __func__, __LINE__,
17 - dev->match_id, dev->core.bus_id, drv->match_id, drv->core.name,
18 - (result ? "match" : "miss"));
19 + if (result)
20 + pr_info("%s:%d: dev=%u(%s), drv=%u(%s): match\n", __func__,
21 + __LINE__, dev->match_id, dev->core.bus_id,
22 + drv->match_id, drv->core.name);
23 + else
24 + pr_debug("%s:%d: dev=%u(%s), drv=%u(%s): miss\n", __func__,
25 + __LINE__, dev->match_id, dev->core.bus_id,
26 + drv->match_id, drv->core.name);
27 return result;
28 }
29
30 @@ -362,7 +367,7 @@
31 struct ps3_system_bus_driver *drv;
32
33 BUG_ON(!dev);
34 - pr_info(" -> %s:%d: %s\n", __func__, __LINE__, _dev->bus_id);
35 + pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, _dev->bus_id);
36
37 drv = ps3_system_bus_dev_to_system_bus_drv(dev);
38 BUG_ON(!drv);
39 @@ -370,10 +375,10 @@
40 if (drv->probe)
41 result = drv->probe(dev);
42 else
43 - pr_info("%s:%d: %s no probe method\n", __func__, __LINE__,
44 + pr_debug("%s:%d: %s no probe method\n", __func__, __LINE__,
45 dev->core.bus_id);
46
47 - pr_info(" <- %s:%d: %s\n", __func__, __LINE__, dev->core.bus_id);
48 + pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, dev->core.bus_id);
49 return result;
50 }
51
52 @@ -384,7 +389,7 @@
53 struct ps3_system_bus_driver *drv;
54
55 BUG_ON(!dev);
56 - pr_info(" -> %s:%d: %s\n", __func__, __LINE__, _dev->bus_id);
57 + pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, _dev->bus_id);
58
59 drv = ps3_system_bus_dev_to_system_bus_drv(dev);
60 BUG_ON(!drv);
61 @@ -395,7 +400,7 @@
62 dev_dbg(&dev->core, "%s:%d %s: no remove method\n",
63 __func__, __LINE__, drv->core.name);
64
65 - pr_info(" <- %s:%d: %s\n", __func__, __LINE__, dev->core.bus_id);
66 + pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, dev->core.bus_id);
67 return result;
68 }
69
This page took 0.064194 seconds and 3 git commands to generate.