From a77e560ef46b78255438b1882140bbc0143562a7 Mon Sep 17 00:00:00 2001 From: Adrian Chiris Date: Wed, 2 Apr 2014 12:25:51 +0300 Subject: [PATCH] Fixed flint device name in extended help menu --- flint/Makefile.am | 2 +- flint/subcommands.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flint/Makefile.am b/flint/Makefile.am index e4f42ac..58788e5 100755 --- a/flint/Makefile.am +++ b/flint/Makefile.am @@ -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\" diff --git a/flint/subcommands.cpp b/flint/subcommands.cpp index 167365f..e3698d5 100644 --- a/flint/subcommands.cpp +++ b/flint/subcommands.cpp @@ -2983,7 +2983,7 @@ HwSubCommand:: HwSubCommand() INDENTEX" DummyCycles: can be [1..15]\n" INDENTEX" Flash[0|1|2|3].WriteProtected can be:\n" INDENTEX" ,<1|2|4|8|16|32|64>-"; - _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 = ""; _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 = " "; _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; } -- 2.46.0