summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-10-11 17:24:47 -0700
committerJosé Fonseca <jfonseca@vmware.com>2013-10-13 11:13:16 -0700
commit4ce88b87e64c56b2638ee2b6b4785b4ed35aabd6 (patch)
treedc454ed4095351e9cb28a3f65c00860a7aafc29b
parent7ec54f936be0ac8d7fade4df133c4b1009e5782a (diff)
cli: Fix invalid option message.
ascii code was being printed.
-rw-r--r--cli/cli_diff_state.cpp2
-rw-r--r--cli/cli_dump.cpp2
-rw-r--r--cli/cli_dump_images.cpp2
-rw-r--r--cli/cli_pickle.cpp2
-rw-r--r--cli/cli_repack.cpp2
-rw-r--r--cli/cli_sed.cpp2
-rw-r--r--cli/cli_trace.cpp2
-rw-r--r--cli/cli_trim.cpp2
8 files changed, 8 insertions, 8 deletions
diff --git a/cli/cli_diff_state.cpp b/cli/cli_diff_state.cpp
index 341d244f..a802b12a 100644
--- a/cli/cli_diff_state.cpp
+++ b/cli/cli_diff_state.cpp
@@ -66,7 +66,7 @@ command(int argc, char *argv[])
usage();
return 0;
default:
- std::cerr << "error: unexpected option `" << opt << "`\n";
+ std::cerr << "error: unexpected option `" << (char)opt << "`\n";
usage();
return 1;
}
diff --git a/cli/cli_dump.cpp b/cli/cli_dump.cpp
index 1b532563..f37c027f 100644
--- a/cli/cli_dump.cpp
+++ b/cli/cli_dump.cpp
@@ -148,7 +148,7 @@ command(int argc, char *argv[])
}
break;
default:
- std::cerr << "error: unexpected option `" << opt << "`\n";
+ std::cerr << "error: unexpected option `" << (char)opt << "`\n";
usage();
return 1;
}
diff --git a/cli/cli_dump_images.cpp b/cli/cli_dump_images.cpp
index 86cf75c3..bf3dc566 100644
--- a/cli/cli_dump_images.cpp
+++ b/cli/cli_dump_images.cpp
@@ -100,7 +100,7 @@ command(int argc, char *argv[])
output = optarg;
break;
default:
- std::cerr << "error: unexpected option `" << opt << "`\n";
+ std::cerr << "error: unexpected option `" << (char)opt << "`\n";
usage();
return 1;
}
diff --git a/cli/cli_pickle.cpp b/cli/cli_pickle.cpp
index 3a9129f8..06057733 100644
--- a/cli/cli_pickle.cpp
+++ b/cli/cli_pickle.cpp
@@ -238,7 +238,7 @@ command(int argc, char *argv[])
calls = trace::CallSet(optarg);
break;
default:
- std::cerr << "error: unexpected option `" << opt << "`\n";
+ std::cerr << "error: unexpected option `" << (char)opt << "`\n";
usage();
return 1;
}
diff --git a/cli/cli_repack.cpp b/cli/cli_repack.cpp
index 6f08896e..5d122fa6 100644
--- a/cli/cli_repack.cpp
+++ b/cli/cli_repack.cpp
@@ -96,7 +96,7 @@ command(int argc, char *argv[])
usage();
return 0;
default:
- std::cerr << "error: unexpected option `" << opt << "`\n";
+ std::cerr << "error: unexpected option `" << (char)opt << "`\n";
usage();
return 1;
}
diff --git a/cli/cli_sed.cpp b/cli/cli_sed.cpp
index 7ddfcb0d..afec1257 100644
--- a/cli/cli_sed.cpp
+++ b/cli/cli_sed.cpp
@@ -274,7 +274,7 @@ command(int argc, char *argv[])
}
break;
default:
- std::cerr << "error: unexpected option `" << opt << "`\n";
+ std::cerr << "error: unexpected option `" << (char)opt << "`\n";
usage();
return 1;
}
diff --git a/cli/cli_trace.cpp b/cli/cli_trace.cpp
index 3e2b6442..078739dd 100644
--- a/cli/cli_trace.cpp
+++ b/cli/cli_trace.cpp
@@ -323,7 +323,7 @@ command(int argc, char *argv[])
output = optarg;
break;
default:
- std::cerr << "error: unexpected option `" << opt << "`\n";
+ std::cerr << "error: unexpected option `" << (char)opt << "`\n";
usage();
return 1;
}
diff --git a/cli/cli_trim.cpp b/cli/cli_trim.cpp
index 938329c9..67e9d4d7 100644
--- a/cli/cli_trim.cpp
+++ b/cli/cli_trim.cpp
@@ -429,7 +429,7 @@ command(int argc, char *argv[])
}
break;
default:
- std::cerr << "error: unexpected option `" << opt << "`\n";
+ std::cerr << "error: unexpected option `" << (char)opt << "`\n";
usage();
return 1;
}