aboutsummaryrefslogtreecommitdiff
path: root/src/trace.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-06-14 15:16:58 +0000
committerMike Buland <eichlan@xagasoft.com>2011-06-14 15:16:58 +0000
commit2a8a2d2aed7faaa88e91f54871120f114645382d (patch)
tree88c021cb39f7a013b6ab9eba2ab9eeb44e614051 /src/trace.cpp
parent5f2c95f9116f24ecd64b6361b6e22ce983732997 (diff)
downloadlibbu++-2a8a2d2aed7faaa88e91f54871120f114645382d.tar.gz
libbu++-2a8a2d2aed7faaa88e91f54871120f114645382d.tar.bz2
libbu++-2a8a2d2aed7faaa88e91f54871120f114645382d.tar.xz
libbu++-2a8a2d2aed7faaa88e91f54871120f114645382d.zip
With any luck, that'll fix the cross-compiling trace code. Now we just need to
hope that the formatter code is not going to have the same problem.
Diffstat (limited to '')
-rw-r--r--src/trace.cpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/trace.cpp b/src/trace.cpp
index 906ce54..03181e9 100644
--- a/src/trace.cpp
+++ b/src/trace.cpp
@@ -12,69 +12,6 @@ void Bu::__tracer( const char *pf )
12 printf("trace: %s\n", pf ); 12 printf("trace: %s\n", pf );
13} 13}
14 14
15template<> void Bu::__tracer_format<int8_t>( const int8_t &v )
16{
17 printf("%hhd", v );
18}
19
20template<> void Bu::__tracer_format<uint8_t>( const uint8_t &v )
21{
22 printf("%hhu", v );
23}
24
25template<> void Bu::__tracer_format<int16_t>( const int16_t &v )
26{
27 printf("%hd", v );
28}
29
30template<> void Bu::__tracer_format<uint16_t>( const uint16_t &v )
31{
32 printf("%hu", v );
33}
34
35template<> void Bu::__tracer_format<int32_t>( const int32_t &v )
36{
37 printf("%d", v );
38}
39
40template<> void Bu::__tracer_format<uint32_t>( const uint32_t &v )
41{
42 printf("%u", v );
43}
44
45template<> void Bu::__tracer_format<int64_t>( const int64_t &v )
46{
47 printf("%lld", v );
48}
49
50template<> void Bu::__tracer_format<uint64_t>( const uint64_t &v )
51{
52 printf("%llu", v );
53}
54
55template<> void Bu::__tracer_format<bool>( const bool &v )
56{
57 if( v )
58 printf("true");
59 else
60 printf("false");
61}
62
63template<> void Bu::__tracer_format<char>( const char &v )
64{
65 printf("%hhd", v );
66}
67
68template<> void Bu::__tracer_format<long>( const long &v )
69{
70 printf("%ld", v );
71}
72
73template<> void Bu::__tracer_format<unsigned long>( const unsigned long &v )
74{
75 printf("%lu", v );
76}
77
78template<> void Bu::__tracer_format<float>( const float &v ) 15template<> void Bu::__tracer_format<float>( const float &v )
79{ 16{
80 printf("%f", v ); 17 printf("%f", v );