Add parameter for POST code length
The -b/--bytes parameter allows specifying the length in bytes of each
POST code. It defaults to 1 for compatibility with existing systems.
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Change-Id: I1947c66c5cd4657984c3c5ffae8b11603c53939a
diff --git a/example.cpp b/example.cpp
index 2fb1e83..55bd4ed 100644
--- a/example.cpp
+++ b/example.cpp
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+#include <cinttypes>
#include <cstdio>
#include <iostream>
#include <memory>
@@ -86,7 +87,7 @@
/* Print output to verify the example program is receiving values.
*/
- std::printf("recv: 0x%x\n", static_cast<uint8_t>(rawValue));
+ std::printf("recv: 0x%" PRIx64 "\n", rawValue);
}
}