You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/11/07 21:14:28 UTC

[GitHub] ccollins476ad closed pull request #1502: sys/log/stub: Add missing stubs

ccollins476ad closed pull request #1502: sys/log/stub: Add missing stubs
URL: https://github.com/apache/mynewt-core/pull/1502
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/sys/log/stub/include/log/log.h b/sys/log/stub/include/log/log.h
index 6c87510e2d..3cf7e22b0c 100644
--- a/sys/log/stub/include/log/log.h
+++ b/sys/log/stub/include/log/log.h
@@ -71,6 +71,29 @@ log_append_mbuf_typed_no_free(struct log *log, uint8_t module, uint8_t level,
     return 0;
 }
 
+static inline int
+log_append_mbuf_typed(struct log *log, uint8_t module, uint8_t level,
+                      uint8_t etype, struct os_mbuf *om)
+{
+    os_mbuf_free_chain(om);
+    return 0;
+}
+
+static inline int
+log_append_mbuf_body_no_free(struct log *log, uint8_t module, uint8_t level,
+                             uint8_t etype, struct os_mbuf *om)
+{
+    return 0;
+}
+
+static inline int
+log_append_mbuf_body(struct log *log, uint8_t module, uint8_t level,
+                     uint8_t etype, struct os_mbuf *om)
+{
+    os_mbuf_free_chain(om);
+    return 0;
+}
+
 static inline void
 log_init(void)
 {
diff --git a/sys/log/stub/include/log/log_fcb_slot1.h b/sys/log/stub/include/log/log_fcb_slot1.h
index b86bb2c316..7f4cde6f49 100644
--- a/sys/log/stub/include/log/log_fcb_slot1.h
+++ b/sys/log/stub/include/log/log_fcb_slot1.h
@@ -25,7 +25,7 @@
 #if MYNEWT_VAL(LOG_FCB_SLOT1)
 
 #include "log/log.h"
-#include "fcb/fcb.h"
+struct fcb_log;
 
 #ifdef __cplusplus
 extern "C" {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services