cosmetics, whitespace
Change-Id: I1212dfeff33d7bcb8b699233279fbf05014ea3bd
This commit is contained in:
@ -149,6 +149,3 @@ Database * Database::cmdline_connect() {
|
|||||||
|
|
||||||
return new Database(username, hostname, database);
|
return new Database(username, hostname, database);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ bool Importer::clear_database() {
|
|||||||
ss << "DELETE FROM trace WHERE variant_id = " << m_variant_id;
|
ss << "DELETE FROM trace WHERE variant_id = " << m_variant_id;
|
||||||
|
|
||||||
bool ret = db->query(ss.str().c_str()) == 0 ? false : true;
|
bool ret = db->query(ss.str().c_str()) == 0 ? false : true;
|
||||||
log << "delted " << db->affected_rows() << " rows from trace table" << std::endl;
|
log << "deleted " << db->affected_rows() << " rows from trace table" << std::endl;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -56,11 +56,11 @@ int main(int argc, char *argv[]) {
|
|||||||
cmd.add_args(argv[i]);
|
cmd.add_args(argv[i]);
|
||||||
|
|
||||||
CommandLine::option_handle IGNORE = cmd.addOption("", "", Arg::None, "USAGE: import-trace [options]");
|
CommandLine::option_handle IGNORE = cmd.addOption("", "", Arg::None, "USAGE: import-trace [options]");
|
||||||
CommandLine::option_handle HELP = cmd.addOption("h", "help", Arg::None, "-h,--help\t Print usage and exit");
|
CommandLine::option_handle HELP = cmd.addOption("h", "help", Arg::None, "-h/--help\t Print usage and exit");
|
||||||
CommandLine::option_handle TRACE_FILE = cmd.addOption("t", "trace-file", Arg::Required,
|
CommandLine::option_handle TRACE_FILE = cmd.addOption("t", "trace-file", Arg::Required,
|
||||||
"-t/--trace-file\t File to save the execution trace to\n");
|
"-t/--trace-file\t File to load the execution trace from\n");
|
||||||
|
|
||||||
// setup the datbase command line options
|
// setup the database command line options
|
||||||
Database::cmdline_setup();
|
Database::cmdline_setup();
|
||||||
|
|
||||||
CommandLine::option_handle VARIANT = cmd.addOption("v", "variant", Arg::Required,
|
CommandLine::option_handle VARIANT = cmd.addOption("v", "variant", Arg::Required,
|
||||||
|
|||||||
Reference in New Issue
Block a user