diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-06-12 09:18:05 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2017-06-14 08:53:39 -0700 |
commit | d52256b60fe0c5b4990d742ec2655fddd9d77e19 (patch) | |
tree | 9d0750c9ef7f48079c1c1e8bce8858e8f383aa58 /software | |
parent | 9b831bc77f8a7a0046899075aa0f0016478f5bf2 (diff) |
Call puts instead of printf when printing constants
printf doesn't fit in the scratchpad, but since there's really no reason
to call it on constant strings it can be replaced with puts. With this
change, the "hello" example fits in the scratchpad.
Diffstat (limited to 'software')
-rw-r--r-- | software/hello/hello.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/software/hello/hello.c b/software/hello/hello.c index 85c5d87..befc6ee 100644 --- a/software/hello/hello.c +++ b/software/hello/hello.c @@ -2,7 +2,7 @@ int main() { - printf("hello world!\n"); + puts("hello world!\n"); return 0; } |