diff options
| author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-12 16:26:19 +1100 |
|---|---|---|
| committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-17 10:33:53 +1100 |
| commit | fa0f3b9acbfa79e7981baff56d151d1273f97f35 (patch) | |
| tree | ef100b8ee20f749b7fdd613246b86985a0b39378 /core/test | |
| parent | 5f9db1d7689c6e63d910343835d3cdcada5a475e (diff) | |
| download | talos-skiboot-fa0f3b9acbfa79e7981baff56d151d1273f97f35.tar.gz talos-skiboot-fa0f3b9acbfa79e7981baff56d151d1273f97f35.zip | |
console-log: print full remaining timebase in skiboot log
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/test')
| -rw-r--r-- | core/test/run-console-log-buf-overrun.c | 6 | ||||
| -rw-r--r-- | core/test/run-console-log-pr_fmt.c | 6 | ||||
| -rw-r--r-- | core/test/run-console-log.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/core/test/run-console-log-buf-overrun.c b/core/test/run-console-log-buf-overrun.c index 847a22c2..01fca9b8 100644 --- a/core/test/run-console-log-buf-overrun.c +++ b/core/test/run-console-log-buf-overrun.c @@ -81,10 +81,10 @@ int main(void) huge_tb = 0; prlog(PR_EMERG, "Hello World %lu", value); - CHECK_ASSERT("[ 0.000042,0] Hello World 18446744073709551615"); + CHECK_ASSERT("[ 0.000000042,0] Hello World 18446744073709551615"); printf("Hello World %lu", value); - CHECK_ASSERT("[ 0.000042,5] Hello World 18446744073709551615"); + CHECK_ASSERT("[ 0.000000042,5] Hello World 18446744073709551615"); /* * Test string of size > 320 @@ -105,7 +105,7 @@ int main(void) */ memset(console_buffer, 0, sizeof(console_buffer)); - prlog(PR_EMERG, "%303s", "Hello World"); + prlog(PR_EMERG, "%300s", "Hello World"); assert(console_buffer[319] == 0); /* compare truncated string */ diff --git a/core/test/run-console-log-pr_fmt.c b/core/test/run-console-log-pr_fmt.c index 92c600d6..03ee476f 100644 --- a/core/test/run-console-log-pr_fmt.c +++ b/core/test/run-console-log-pr_fmt.c @@ -52,7 +52,7 @@ int main(void) debug_descriptor.console_log_levels = 0x75; prlog(PR_EMERG, "Hello World"); - assert(memcmp(console_buffer, "[ 0.000042,0] PREFIX: Hello World", strlen("[ 0.000042,0] PREFIX: Hello World")) == 0); + assert(memcmp(console_buffer, "[ 0.000000042,0] PREFIX: Hello World", strlen("[ 0.000042,0] PREFIX: Hello World")) == 0); assert(flushed_to_drivers==true); memset(console_buffer, 0, sizeof(console_buffer)); @@ -63,11 +63,11 @@ int main(void) // Should not be flushed to console prlog(PR_DEBUG, "Hello World"); - assert(memcmp(console_buffer, "[ 0.000042,7] PREFIX: Hello World", strlen("[ 0.000042,7] PREFIX: Hello World")) == 0); + assert(memcmp(console_buffer, "[ 0.000000042,7] PREFIX: Hello World", strlen("[ 0.000042,7] PREFIX: Hello World")) == 0); assert(flushed_to_drivers==false); printf("Hello World"); - assert(memcmp(console_buffer, "[ 0.000042,5] PREFIX: Hello World", strlen("[ 0.000042,5] PREFIX: Hello World")) == 0); + assert(memcmp(console_buffer, "[ 0.000000042,5] PREFIX: Hello World", strlen("[ 0.000042,5] PREFIX: Hello World")) == 0); assert(flushed_to_drivers==true); return 0; diff --git a/core/test/run-console-log.c b/core/test/run-console-log.c index f9e7b567..6d6d366b 100644 --- a/core/test/run-console-log.c +++ b/core/test/run-console-log.c @@ -52,7 +52,7 @@ int main(void) debug_descriptor.console_log_levels = 0x75; prlog(PR_EMERG, "Hello World"); - assert(memcmp(console_buffer, "[ 0.000042,0] Hello World", strlen("[ 0.000042,0] Hello World")) == 0); + assert(memcmp(console_buffer, "[ 0.000000042,0] Hello World", strlen("[ 0.000042,0] Hello World")) == 0); assert(flushed_to_drivers==true); memset(console_buffer, 0, sizeof(console_buffer)); @@ -63,11 +63,11 @@ int main(void) // Should not be flushed to console prlog(PR_DEBUG, "Hello World"); - assert(memcmp(console_buffer, "[ 0.000042,7] Hello World", strlen("[ 0.000042,7] Hello World")) == 0); + assert(memcmp(console_buffer, "[ 0.000000042,7] Hello World", strlen("[ 0.000042,7] Hello World")) == 0); assert(flushed_to_drivers==false); printf("Hello World"); - assert(memcmp(console_buffer, "[ 0.000042,5] Hello World", strlen("[ 0.000042,5] Hello World")) == 0); + assert(memcmp(console_buffer, "[ 0.000000042,5] Hello World", strlen("[ 0.000042,5] Hello World")) == 0); assert(flushed_to_drivers==true); return 0; |

