~ubuntu-branches/ubuntu/saucy/s390-tools/saucy

« back to all changes in this revision

Viewing changes to tunedasd/src/tunedasd.c

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2008-07-15 23:55:41 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080715235541-r79vu6eqh4qim413
Tags: 1.6.2-1
* New upstream version.
* Install udev rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * s390-tools/tunedasd/src/tunedasd.c
3
3
 *   zSeries DASD tuning program.
4
4
 *
5
 
 * (C) Copyright IBM Corp. 2004
 
5
 * Copyright IBM Corp. 2004, 2006.
6
6
 *
7
7
 * Author(s): Horst Hummel (horst.hummel@de.ibm.com)
8
8
 */
18
18
 
19
19
#include "disk.h"
20
20
#include "error.h"
 
21
#include "zt_common.h"
21
22
 
22
23
/* Full tool name */
23
 
static const char tool_name[] = "zSeries DASD tuning program";
 
24
static const char tool_name[] = "tunedasd: zSeries DASD tuning program";
24
25
 
25
26
/* Copyright notice */
26
 
static const char copyright_notice[] = "(C) Copyright IBM Corp. 2004";
27
 
 
28
 
/* Contact information for bug reporting */
29
 
static const char contact_information[] = "linux390@de.ibm.com";
 
27
static const char copyright_notice[] = "Copyright IBM Corp. 2004, 2006";
30
28
 
31
29
/* Usage information */
32
30
static const char* usage_text[] = {
53
51
        "-I, --prof_item          Print single profile item",
54
52
        "                         (reqs/sects/sizes/total/totsect/start/irq/",
55
53
        "                         irqsect/end/queue)",
56
 
        "-R, --reset_prof         Reset profile info of device",
57
 
        ""
 
54
        "-R, --reset_prof         Reset profile info of device"
58
55
};
59
56
 
60
57
#define CMD_KEYWORD_NUM         11
184
181
        for (i = 0; i < sizeof (usage_text) / sizeof (usage_text[0]); i++) {
185
182
                printf ("%s\n", usage_text[i]);
186
183
        }
187
 
        printf ("Please report bugs to: %s\n", contact_information);
188
184
}
189
185
 
190
186
 
380
376
                        /* End of options string - start of devices list */
381
377
                        cmdline.device_id = optind;
382
378
                        break;
383
 
                case '?':
384
 
                        /* Unrecognized option - error is printed by getopt */
385
 
                        rc = -1;
386
 
                        break;
387
379
                default:
388
 
                        error_print ("Invalid command line detected");
 
380
                        fprintf(stderr, "Try 'tunedasd --help' for more"
 
381
                                        " information.\n");
389
382
                        rc = -1;
 
383
                        break;
390
384
                }
391
385
                if (rc < 0) {
392
386
                        return rc;