]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
Fixed flint device name in extended help menu
authorAdrian Chiris <adrianc@mellanox.com>
Wed, 2 Apr 2014 09:25:51 +0000 (12:25 +0300)
committerAdrian Chiris <adrianc@mellanox.com>
Wed, 2 Apr 2014 09:25:51 +0000 (12:25 +0300)
flint/Makefile.am
flint/subcommands.cpp

index e4f42ac43badb2342f929654137304f029108afb..58788e514f7dc68ee6ae07abb38e57ec3538dedd 100755 (executable)
@@ -64,5 +64,5 @@ endif
 
 #get mst device examples and tool name from makefile
 mstflint_CXXFLAGS+= -DFLINT_NAME=\"mstflint\" -DFLINT_DISPLAY_NAME=\"MstFlint\"
-mstflint_CXXFLAGS += -DMST_DEV_EXAMPLE1=\"/dev/mst/mt4099_pci_cr0\" -DMST_DEV_EXAMPLE2=\"/dev/mst/mt4099_pciconf0\" -DMST_DEV_EXAMPLE3=\"/dev/mst/mt4113_pciconf0\"
+mstflint_CXXFLAGS += -DMST_DEV_EXAMPLE1=\"03:00.0\" -DMST_DEV_EXAMPLE2=\"mlx4_0\" -DMST_DEV_EXAMPLE3=\"03:00.0\"
 
index 167365f3addefc633e92e691e5a091c15b1abeba..e3698d5719f5ad78b91233bb50d4089c4a1c90c7 100644 (file)
@@ -2983,7 +2983,7 @@ HwSubCommand:: HwSubCommand()
        INDENTEX"    DummyCycles: can be [1..15]\n"
        INDENTEX"    Flash[0|1|2|3].WriteProtected can be:\n"
        INDENTEX"        <Top|Bottom>,<1|2|4|8|16|32|64>-<Sectors|SubSectors>";
-    _example = "flint -d /dev/mst/mt4099_pci_cr0 hw query\n"
+    _example = "flint -d "MST_DEV_EXAMPLE1" hw query\n"
             INDENTEX FLINT_NAME" -d "MST_DEV_EXAMPLE1" hw set QuadEn=1\n"
             INDENTEX FLINT_NAME" -d "MST_DEV_EXAMPLE1" hw set Flash1.WriteProtected=Top,1-SubSectors";
 #else
@@ -3224,7 +3224,7 @@ RwSubCommand:: RwSubCommand() {
     _flagShort = "";
     _param = "<addr>";
     _paramExp = "addr - address of word to read";
-    _example = "flint -d /dev/mst/mt4099_pci_cr0 rw 0x20";
+    _example = "flint -d "MST_DEV_EXAMPLE1" rw 0x20";
     _v = Wtv_Dev_Or_Img;
     _cmdType = SC_Rw;
 }
@@ -3349,7 +3349,7 @@ WwneSubCommand:: WwneSubCommand()
     _param = "<addr> <data>";
     _paramExp = "addr - address of word\n"
                 INDENTEX"data - value of word";
-    _example = "flint -d /dev/mst/mt4099_pci_cr0 wwne 0x10008 0x5a445a44";
+    _example = "flint -d "MST_DEV_EXAMPLE1" wwne 0x10008 0x5a445a44";
     _v = Wtv_Dev;
     _cmdType = SC_Wwne;
 }