Commit af978586 authored by Anas Nashif's avatar Anas Nashif
Browse files

Revert "samples/logger-hook: Initialize variable to 0"



This reverts commit 7a74fb04.

This commit breaks the sample. The sample code has a bug which will be
addressed in a separate patch.

Change-Id: Ic44faeafced4415765fded04e2493e306fc35331
Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 418058a1
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -86,10 +86,9 @@ void main(void)

static inline void ring_buf_print(struct ring_buf *buf)
{
	uint8_t size;
	uint8_t data[512];
	int ret = EAGAIN;
	uint8_t size = 0;
	int count = 0;
	int ret = EAGAIN, count = 0;

	while (ret == EAGAIN && count < 2) {
		count++;