Changeset 3163

Show
Ignore:
Timestamp:
03/17/08 14:43:48 (9 months ago)
Author:
uwe
Message:

Various smaller fixes in superiotool:

  • Also dump the extra registers (e.g. EC regs) in --list-supported.
  • Small fix in the code to allow for building with -pedantic (yes, the fix is a bit silly, but it's simple and allows us to use the -pedantic flag to keep the code even cleaner and nicer).
  • Install the binary in /usr/sbin, as it's meant to be run as root.
  • Small typo in README.

Signed-off-by: Uwe Hermann <uwe@…>
Acked-by: Stefan Reinauer <stepan@…>

Location:
trunk/util/superiotool
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/util/superiotool/Makefile

    r2852 r3163  
    3030          | sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"' 
    3131 
    32 # TODO: -pedantic 
    3332CFLAGS = -O2 -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \ 
    34          -Werror-implicit-function-declaration -ansi $(SVNDEF) 
     33         -Werror-implicit-function-declaration -ansi -pedantic $(SVNDEF) 
    3534 
    3635OBJS = superiotool.o ali.o fintek.o ite.o nsc.o smsc.o winbond.o 
     
    4443 
    4544install: $(PROGRAM) 
    46         $(INSTALL) $(PROGRAM) $(PREFIX)/bin 
     45        $(INSTALL) $(PROGRAM) $(PREFIX)/sbin 
    4746        mkdir -p $(PREFIX)/share/man/man8 
    4847        $(INSTALL) $(PROGRAM).8 $(PREFIX)/share/man/man8 
  • trunk/util/superiotool/README

    r3127 r3163  
    3131----- 
    3232 
    33 Please read the superiotool(1) manpage or type 'superiotool --help'. 
     33Please read the superiotool(8) manpage or type 'superiotool --help'. 
    3434 
    3535Per default (no options) superiotool will just probe for a Super I/O 
  • trunk/util/superiotool/ite.c

    r3121 r3163  
    429429{ 
    430430        print_vendor_chips("ITE", reg_table); 
     431        print_vendor_chips("ITE EC", ec_table); 
    431432} 
  • trunk/util/superiotool/superiotool.c

    r3121 r3163  
    238238                case 'h': 
    239239                        printf(USAGE); 
     240                        printf(USAGE_INFO); 
    240241                        exit(0); 
    241242                        break; 
  • trunk/util/superiotool/superiotool.h

    r3121 r3163  
    3737  -V | --verbose         Verbose mode\n\ 
    3838  -v | --version         Show the superiotool version\n\ 
    39   -h | --help            Show a short help text\n\n\ 
     39  -h | --help            Show a short help text\n\n" 
     40 
     41#define USAGE_INFO "\ 
    4042Per default (no options) superiotool will just probe for a Super I/O\n\ 
    4143and print its vendor, name, ID, revision, and config port.\n" 
     
    124126}; 
    125127 
    126  
    127128/** Table of functions to print out supported Super I/O chips. */ 
    128129static const struct {