From 63d605ceceef89ff3d25a1e414d383310267b450 Mon Sep 17 00:00:00 2001 From: rread Date: Tue, 16 Jul 2002 20:52:12 +0000 Subject: [PATCH] - use stdout for regular messages --- lustre/utils/lctl.c | 6 +++--- lustre/utils/network.c | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lustre/utils/lctl.c b/lustre/utils/lctl.c index 7b8ed18b..1f8772d 100644 --- a/lustre/utils/lctl.c +++ b/lustre/utils/lctl.c @@ -86,8 +86,8 @@ command_t cmdlist[] = { "The nid defaults to hostname for tcp networks and is automatically " "setup for elan/myrinet networks.\n" "usage: mynid [nid]"}, - {"add_uuid", jt_net_add_uuid, 0, "associate a name/uuid with a nid\n" - "usage: add_uuid "}, + {"add_uuid", jt_net_add_uuid, 0, "associate a uuid with a nid\n" + "usage: add_uuid "}, {"del_uuid", jt_net_del_uuid, 0, "delete a uuid association\n" "usage: del_uuid "}, {"add_route", jt_net_add_route, 0, @@ -136,7 +136,7 @@ command_t cmdlist[] = { "usage: detach"}, {"lovconfig", jt_dev_lov_config, 0, "write lov configuration to a mds device\n" - "usage: lovconfig"}, + "usage: lovconfig lov-uuid stripcount stripsize pattern UUID1 [UUID2 ...]"}, /* Device operations */ {"=== device operations ==", jt_noop, 0, "device operations"}, diff --git a/lustre/utils/network.c b/lustre/utils/network.c index 5639197..8f10f11 100644 --- a/lustre/utils/network.c +++ b/lustre/utils/network.c @@ -260,7 +260,7 @@ int jt_net_connect(int argc, char **argv) { fprintf(stderr, "Can't get nagle: %s\n", strerror(errno)); - fprintf(stderr, "Connected to %s (snd %d, rcv %d, nagle %s)\n", + printf("Connected to %s (snd %d, rcv %d, nagle %s)\n", argv[1],txmem,rxmem,nonagle ? "Disabled" : "Enabled"); PORTAL_IOC_INIT(data); @@ -276,7 +276,7 @@ int jt_net_connect(int argc, char **argv) { } g_nid = ntohl (srvaddr.sin_addr.s_addr); /* HOST byte order */ - fprintf(stderr, "Connection to 0x%x registered with socknal\n", + printf("Connection to 0x%x registered with socknal\n", g_nid); rc = close(fd); @@ -300,7 +300,7 @@ int jt_net_disconnect(int argc, char **argv) { return CMD_HELP; if (g_nal == 0) { - fprintf(stderr, "Error: you must run the 'setup' command " + fprintf(stderr, "Error: you must run the 'network' command " "first.\n"); return -1; } @@ -333,10 +333,10 @@ int jt_net_disconnect(int argc, char **argv) { return -1; } } else if (g_nal == QSWNAL) { - fprintf(stderr, "'disconnect' doesn't make any sense for " + printf("'disconnect' doesn't make any sense for " "elan.\n"); } else if (g_nal == GMNAL) { - fprintf(stderr, "'disconnect' doesn't make any sense for " + printf("'disconnect' doesn't make any sense for " "GM.\n"); } else { fprintf(stderr, "This should never happen. Also it is very " @@ -464,7 +464,7 @@ int jt_net_mynid(int argc, char **argv) { fprintf(stderr, "IOC_PORTAL_REGISTER_MYNID failed: %s\n", strerror(errno)); else - fprintf(stderr, "registered my nid 0x%Lx (%s)\n", + printf("registered my nid 0x%Lx (%s)\n", mynid, hostname); return 0; } @@ -506,7 +506,7 @@ int jt_net_add_uuid(int argc, char **argv) { return -1; } - fprintf (stderr, "Added uuid %s: %s\n", argv[1], nid2str (tmp, nid)); + printf ("Added uuid %s: %s\n", argv[1], nid2str (tmp, nid)); return 0; } -- 1.8.3.1