X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=setpci.c;h=fc10c1de8459c72c59b1c4e07b83079890139a36;hb=9ff67879d0d4f2421c376825bf0aa3d7ff924e78;hp=4f9953d5bcd3548e7f90ce6dc3b1dc527d572c39;hpb=098174370094ba8c31f86bd9faed3796dcaeb1db;p=pciutils.git diff --git a/setpci.c b/setpci.c index 4f9953d..fc10c1d 100644 --- a/setpci.c +++ b/setpci.c @@ -1,7 +1,7 @@ /* * The PCI Utilities -- Manipulate PCI Configuration Registers * - * Copyright (c) 1998--2004 Martin Mares + * Copyright (c) 1998--2006 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -18,6 +18,8 @@ static int force; /* Don't complain if no devices match */ static int verbose; /* Verbosity level */ static int demo_mode; /* Only show */ +const char program_name[] = "setpci"; + static struct pci_access *pacc; struct value { @@ -256,10 +258,10 @@ usage(char *msg, ...) fprintf(stderr, "\n\n"); } fprintf(stderr, -"Usage: setpci [] (+ [=]*)*\n\ --f\t\tDon't complain if there's nothing to do\n\ --v\t\tBe verbose\n\ --D\t\tList changes, don't commit them\n" +"Usage: setpci [] (+ [=]*)*\n" +"-f\t\tDon't complain if there's nothing to do\n" +"-v\t\tBe verbose\n" +"-D\t\tList changes, don't commit them\n" GENERIC_HELP ":\t-s [[[]:][]:][][.[]]\n" "\t|\t-d []:[]\n" @@ -435,7 +437,7 @@ next: case 'L': op->width = 4; break; default: - usage("Invalid width \"%s\"", *e); + usage("Invalid width \"%c\"", *e); } } else