| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: drvctl.c,v 1.15 2012/01/16 19:43:50 pgoyette Exp $ */ | | 1 | /* $NetBSD: drvctl.c,v 1.16 2012/01/17 08:22:09 wiz Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 2004 | | 4 | * Copyright (c) 2004 |
5 | * Matthias Drochner. All rights reserved. | | 5 | * Matthias Drochner. All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions, and the following disclaimer. | | 11 | * notice, this list of conditions, and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -45,27 +45,27 @@ | | | @@ -45,27 +45,27 @@ |
45 | | | 45 | |
46 | __dead static void usage(void); | | 46 | __dead static void usage(void); |
47 | static void extract_property(prop_dictionary_t, const char *, bool); | | 47 | static void extract_property(prop_dictionary_t, const char *, bool); |
48 | static void display_object(prop_object_t, bool); | | 48 | static void display_object(prop_object_t, bool); |
49 | static void list_children(int, char *, bool, bool, int); | | 49 | static void list_children(int, char *, bool, bool, int); |
50 | | | 50 | |
51 | static void | | 51 | static void |
52 | usage(void) | | 52 | usage(void) |
53 | { | | 53 | { |
54 | | | 54 | |
55 | fprintf(stderr, "Usage: %s -r [-a attribute] busdevice [locator ...]\n" | | 55 | fprintf(stderr, "Usage: %s -r [-a attribute] busdevice [locator ...]\n" |
56 | " %s -d device\n" | | 56 | " %s -d device\n" |
57 | " %s [-nt] -l [device]\n" | | 57 | " %s [-nt] -l [device]\n" |
58 | " %s -p device [prop]\n" | | 58 | " %s [-n] -p device [prop]\n" |
59 | " %s -Q device\n" | | 59 | " %s -Q device\n" |
60 | " %s -R device\n" | | 60 | " %s -R device\n" |
61 | " %s -S device\n", | | 61 | " %s -S device\n", |
62 | getprogname(), getprogname(), getprogname(), getprogname(), | | 62 | getprogname(), getprogname(), getprogname(), getprogname(), |
63 | getprogname(), getprogname(), getprogname()); | | 63 | getprogname(), getprogname(), getprogname()); |
64 | exit(1); | | 64 | exit(1); |
65 | } | | 65 | } |
66 | | | 66 | |
67 | int | | 67 | int |
68 | main(int argc, char **argv) | | 68 | main(int argc, char **argv) |
69 | { | | 69 | { |
70 | bool nflag = false, tflag = false; | | 70 | bool nflag = false, tflag = false; |
71 | int c, mode; | | 71 | int c, mode; |