]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
core: Mark hexdigit string static
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 19 Nov 2014 05:54:57 +0000 (06:54 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 21 Nov 2014 17:15:27 +0000 (18:15 +0100)
ARM inmates have troubles processing a non-static version, and it also
makes no sense to have this constant on the stack.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/printk-core.c

index 6265cb1597aea5352c2bb03bbcbb75bd57b09e4e..9a0a235ae35f86496e605ca81f59a7bb18dd1f86 100644 (file)
@@ -71,7 +71,7 @@ static char *int2str(long long value, char *buf)
 static char *hex2str(unsigned long long value, char *buf,
                     unsigned long long leading_zero_mask)
 {
-       const char hexdigit[] = "0123456789abcdef";
+       static const char hexdigit[] = "0123456789abcdef";
        unsigned long long digit, divisor = 0x1000000000000000ULL;
        int first_digit = 1;