~ubuntu-branches/ubuntu/vivid/powerpc-ibm-utils/vivid

« back to all changes in this revision

Viewing changes to src/sys_ident.c

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2014-03-23 11:13:24 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140323111324-dtxfwdczoo1a0erc
* QA Upload.
* New upstream release, with ofpathname and lsslot fixes.
* ofpathname should work on all platforms now (closes: #611588),
  though still doesn't handle appending partition info (#405337)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include <ctype.h>
36
36
#include <errno.h>
37
37
#include <librtas.h>
 
38
#include "pseries_platform.h"
38
39
 
39
40
#define POW_36_4        (36*36*36*36)
40
41
#define POW_36_3        (36*36*36)
440
441
{
441
442
        int c, s_flag = 0, p_flag = 0;
442
443
 
 
444
        if (get_platform() != PLATFORM_PSERIES_LPAR) {
 
445
                fprintf(stderr, "%s: is not supported on the %s platform\n",
 
446
                                                        argv[0], platform_name);
 
447
                return 1;
 
448
        }
 
449
 
443
450
        while ((c = getopt(argc, argv, "hps")) != -1) {
444
451
 
445
452
                switch (c) {