From da1da2062ac4e572899663eab553ec2051177d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Sun, 26 Nov 2023 18:50:10 +0100 Subject: [PATCH] remove brackets around status code string representation --- benchmarks/statuscode-tostring.hpp | 36 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/benchmarks/statuscode-tostring.hpp b/benchmarks/statuscode-tostring.hpp index 14a8b9f..1686fd1 100644 --- a/benchmarks/statuscode-tostring.hpp +++ b/benchmarks/statuscode-tostring.hpp @@ -4,23 +4,23 @@ inline const std::string StatusCodeToString(const dml::status_code code) { switch(code) { - case dml::status_code::ok: return "[ok]"; - case dml::status_code::false_predicate: return "[false predicate]"; - case dml::status_code::partial_completion: return "[partial completion]"; - case dml::status_code::nullptr_error: return "[nullptr error]"; - case dml::status_code::bad_size: return "[bad size]"; - case dml::status_code::bad_length: return "[bad length]"; - case dml::status_code::inconsistent_size: return "[inconsistent size]"; - case dml::status_code::dualcast_bad_padding: return "[dualcast bad padding]"; - case dml::status_code::bad_alignment: return "[bad alignment]"; - case dml::status_code::buffers_overlapping: return "[buffers overlapping]"; - case dml::status_code::delta_delta_empty: return "[delta delta empty]"; - case dml::status_code::batch_overflow: return "[batch overflow]"; - case dml::status_code::execution_failed: return "[execution failed]"; - case dml::status_code::unsupported_operation: return "[unsupported operation]"; - case dml::status_code::queue_busy: return "[queue busy]"; - case dml::status_code::error: return "[unknown error]"; - case dml::status_code::config_error: return "[config error]"; - default: return "[unhandled error]"; + case dml::status_code::ok: return "ok"; + case dml::status_code::false_predicate: return "false predicate"; + case dml::status_code::partial_completion: return "partial completion"; + case dml::status_code::nullptr_error: return "nullptr error"; + case dml::status_code::bad_size: return "bad size"; + case dml::status_code::bad_length: return "bad length"; + case dml::status_code::inconsistent_size: return "inconsistent size"; + case dml::status_code::dualcast_bad_padding: return "dualcast bad padding"; + case dml::status_code::bad_alignment: return "bad alignment"; + case dml::status_code::buffers_overlapping: return "buffers overlapping"; + case dml::status_code::delta_delta_empty: return "delta delta empty"; + case dml::status_code::batch_overflow: return "batch overflow"; + case dml::status_code::execution_failed: return "execution failed"; + case dml::status_code::unsupported_operation: return "unsupported operation"; + case dml::status_code::queue_busy: return "queue busy"; + case dml::status_code::error: return "unknown error"; + case dml::status_code::config_error: return "config error"; + default: return "unhandled error"; } } \ No newline at end of file