Contents of /trunk/hal/patches/hal-0.5.10-lshal-use-l-as-default-for-show.patch
Parent Directory | Revision Log
Revision 597 -
(show annotations)
(download)
Mon May 19 19:05:19 2008 UTC (16 years, 4 months ago) by niro
File size: 915 byte(s)
Mon May 19 19:05:19 2008 UTC (16 years, 4 months ago) by niro
File size: 915 byte(s)
-gentoo patches
1 | From 4ba8d5065fc890ff1af330b32df5d0fc8062b013 Mon Sep 17 00:00:00 2001 |
2 | From: Danny Kukawka <danny.kukawka@web.de> |
3 | Date: Tue, 11 Dec 2007 12:40:14 +0100 |
4 | Subject: [PATCH] lshal: use -l as default for --show |
5 | |
6 | IMO lshal --show <udi>/-u make no sense without -l as option to show the |
7 | complete device. This patch set long_list=TRUE by default if --show/-u is |
8 | used. |
9 | --- |
10 | tools/lshal.c | 4 +++- |
11 | 1 files changed, 3 insertions(+), 1 deletions(-) |
12 | |
13 | diff --git a/tools/lshal.c b/tools/lshal.c |
14 | index 7e2bf82..78cd0e6 100644 |
15 | --- a/tools/lshal.c |
16 | +++ b/tools/lshal.c |
17 | @@ -826,8 +826,10 @@ main (int argc, char *argv[]) |
18 | libhal_ctx_set_interface_lock_acquired (hal_ctx, interface_lock_acquired); |
19 | libhal_ctx_set_interface_lock_released (hal_ctx, interface_lock_released); |
20 | |
21 | - if (show_device) |
22 | + if (show_device) { |
23 | + long_list = TRUE; |
24 | dump_device (show_device); |
25 | + } |
26 | else if (!do_monitor) |
27 | dump_devices (); |
28 | |
29 | -- |
30 | 1.5.3.7 |
31 |