aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-22 14:46:07 -0500
committerJack Lloyd <[email protected]>2017-01-22 14:46:07 -0500
commit8d75c5c95d80f994477da97ffc48fbbc754a4635 (patch)
tree76a1ec30a2850125e942218364409a348e38580e /src/cli
parentef8c214eb28abc36ddc4ffff467c51ed69cae63c (diff)
Add CPUID::to_string
Deprecates CPUID::print, mainly to avoid use of ostream in utils. Main reasoning is some platforms do not have streams at all. If all uses of streams are for operator<< and operator>> overloads, these can be guarded by a future BOTAN_HAS_CPP_STREAMS system-feature flag. But when ostreams are required to use the API (as here), that is not possible.
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/utils.cpp b/src/cli/utils.cpp
index 5ec8f295e..664f74eb8 100644
--- a/src/cli/utils.cpp
+++ b/src/cli/utils.cpp
@@ -110,7 +110,7 @@ class Print_Cpuid final : public Command
void go() override
{
- Botan::CPUID::print(output());
+ output() << "CPUID flags: " << Botan::CPUID::to_string() << "\n";
}
};