equal
deleted
inserted
replaced
53 | Message | Buffer | |
53 | Message | Buffer | |
54 | counter | Index | */ |
54 | counter | Index | */ |
55 static uint64_t LogCursor[LOG_LEVELS] LOG_BUFFER_ATTRS = {0x0,0x0,0x0,0x0}; |
55 static uint64_t LogCursor[LOG_LEVELS] LOG_BUFFER_ATTRS = {0x0,0x0,0x0,0x0}; |
56 |
56 |
57 /* Store one log message of give size */ |
57 /* Store one log message of give size */ |
58 int LogMessage(uint8_t level, uint8_t* buf, uint32_t size){ |
58 int LogMessage(uint8_t level, char* buf, uint32_t size){ |
59 if(size < LOG_BUFFER_SIZE - sizeof(mTail)){ |
59 if(size < LOG_BUFFER_SIZE - sizeof(mTail)){ |
60 uint32_t buffpos; |
60 uint32_t buffpos; |
61 uint64_t new_cursor, old_cursor; |
61 uint64_t new_cursor, old_cursor; |
62 |
62 |
63 mTail tail; |
63 mTail tail; |