base: add print method for unsigned long long

Fixes #1991.
This commit is contained in:
Josef Söntgen 2016-05-27 23:48:31 +02:00 committed by Christian Helmuth
parent 7f0c3eee6d
commit 941a71346a
2 changed files with 11 additions and 0 deletions

View File

@ -71,6 +71,11 @@ namespace Genode {
*/
void print(Output &output, unsigned long);
/**
* Print unsigned long long value
*/
void print(Output &output, unsigned long long);
/**
* Print unsigned integer value
*/

View File

@ -58,6 +58,12 @@ void Genode::print(Output &output, unsigned long value)
}
void Genode::print(Output &output, unsigned long long value)
{
out_unsigned<unsigned long long>(value, 10, 0, [&] (char c) { output.out_char(c); });
}
void Genode::print(Output &output, long value)
{
out_signed<long>(value, 10, [&] (char c) { output.out_char(c); });