]> xenbits.xensource.com Git - xtf.git/commitdiff
common: Make a weak default for arch_fmt_pointer()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Aug 2021 19:00:56 +0000 (20:00 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Aug 2021 20:06:28 +0000 (21:06 +0100)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
common/weak-defaults.c

index 5aa54689f3589372cfff2929194fbc5a91408967..1fb500a3c841ea7c96e29f52f140d274c8acd8c3 100644 (file)
@@ -5,6 +5,7 @@
  * arch or environment specific implementations.
  */
 #include <xtf/framework.h>
+#include <xtf/types.h>
 
 const char __weak environment_description[] = "Unknown";
 
@@ -16,6 +17,13 @@ void __weak test_setup(void)
 {
 }
 
+bool __weak arch_fmt_pointer(
+    char **str, char *end, const char **fmt_ptr, const void *arg,
+    int width, int precision, unsigned int flags)
+{
+    return false;
+}
+
 void __weak __noreturn arch_crash_hard(void)
 {
     /* panic() has failed.  Sit in a tight loop. */