summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/tools/hwstub_shell.cpp
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-08-05 18:18:17 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-09-07 17:45:28 +0200
commitdd05dc76a45718ad327d3fec69c259b873c39154 (patch)
tree827055a4545f1c370a6ccafc84d19deb2cdb5f73 /utils/hwstub/tools/hwstub_shell.cpp
parent43ca127ebfe9766c84a0456dbac5cafd5f4cb451 (diff)
downloadrockbox-dd05dc76a45718ad327d3fec69c259b873c39154.tar.gz
rockbox-dd05dc76a45718ad327d3fec69c259b873c39154.zip
hwstub: don't put revision in the protocol, it's specific to the implementation
Change-Id: I1311a22da41fe977f1613f1e313a864baa03027c
Diffstat (limited to 'utils/hwstub/tools/hwstub_shell.cpp')
-rw-r--r--utils/hwstub/tools/hwstub_shell.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp
index a10a1dad4e..2f2803da13 100644
--- a/utils/hwstub/tools/hwstub_shell.cpp
+++ b/utils/hwstub/tools/hwstub_shell.cpp
@@ -231,7 +231,7 @@ int my_lua_udelay(lua_State *state)
bool my_lua_import_hwstub()
{
int oldtop = lua_gettop(g_lua);
-
+
lua_newtable(g_lua); // hwstub
lua_newtable(g_lua); // options
@@ -336,8 +336,6 @@ bool my_lua_import_hwstub()
lua_setfield(g_lua, -2, "major");
lua_pushinteger(g_lua, HWSTUB_VERSION_MINOR);
lua_setfield(g_lua, -2, "minor");
- lua_pushinteger(g_lua, HWSTUB_VERSION_REV);
- lua_setfield(g_lua, -2, "revision");
lua_setfield(g_lua, -2, "version");
lua_setfield(g_lua, -2, "host");
@@ -677,8 +675,8 @@ bool my_lua_import_soc(const std::vector< soc_t >& socs)
void usage(void)
{
- printf("hwstub_tool, compiled with hwstub %d.%d.%d\n",
- HWSTUB_VERSION_MAJOR, HWSTUB_VERSION_MINOR, HWSTUB_VERSION_REV);
+ printf("hwstub_tool, compiled with hwstub protocol %d.%d\n",
+ HWSTUB_VERSION_MAJOR, HWSTUB_VERSION_MINOR);
printf("\n");
printf("usage: hwstub_tool [options] <soc desc files>\n");
printf("options:\n");
@@ -797,7 +795,7 @@ int main(int argc, char **argv)
{
printf("Warning: this tool is possibly incompatible with your device:\n");
printf("Device version: %d.%d.%d\n", g_hwdev_ver.bMajor, g_hwdev_ver.bMinor, g_hwdev_ver.bRevision);
- printf("Host version: %d.%d.%d\n", HWSTUB_VERSION_MAJOR, HWSTUB_VERSION_MINOR, HWSTUB_VERSION_REV);
+ printf("Host version: %d.%d\n", HWSTUB_VERSION_MAJOR, HWSTUB_VERSION_MINOR);
}
// get memory layout information