Skip to content
Snippets Groups Projects
Commit 04c3fbf3 authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

Fix sparc-elf-gcc (BCC 4.4.2 release 1.0.50) does not support printf for long long types

parent 6bb4626c
No related branches found
No related tags found
1 merge request!28Updated debug_print(): Enhanced Adaptability for Various Environments
......@@ -49,6 +49,8 @@
# define PRIX32 "lX"
#endif /*PRIX32*/
#if 0
/* sparc-elf-gcc (BCC 4.4.2 release 1.0.50) does not support printf for long long types */
#ifndef PRId64
# define PRId64 "lld"
#endif /*PRId64*/
......@@ -72,6 +74,7 @@
#ifndef PRIX64
# define PRIX64 "llX"
#endif /*PRIX64*/
#endif
#endif /* __sparc__ */
......
......@@ -22,6 +22,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unity.h>
#include "../test_common/test_common.h"
......@@ -60,9 +61,11 @@ void setUp(void)
#endif
if (!n) {
uint32_t high = seed >> 32;
uint32_t low = seed & 0xFFFFFFFF;
n = 1;
cmp_rand_seed(seed);
printf("seed: %"PRIu64"\n", seed);
printf("seed: 0x%08"PRIx32"%08"PRIx32"\n", high, low);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment