Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 201eea3b authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "liblog: move LOG_ID_DEFAULT into the log_id enum" into rvc-dev am:...

Merge "liblog: move LOG_ID_DEFAULT into the log_id enum" into rvc-dev am: bec237bd am: 9f25167f am: 09b8a586

Change-Id: I81d38bd58719965b1fba1f19983c9c324c417e1b
parents 0382f385 09b8a586
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -155,14 +155,11 @@ typedef enum log_id {
  /** The kernel log buffer. */
  LOG_ID_KERNEL = 7,

  LOG_ID_MAX
} log_id_t;
  LOG_ID_MAX,

/**
 * Let the logging function choose the best log target.
 * This is not part of the enum since adding either -1 or 0xFFFFFFFF forces the enum to be signed or
 * unsigned, which breaks unfortunately common arithmetic against LOG_ID_MIN and LOG_ID_MAX. */
#define LOG_ID_DEFAULT -1
  /** Let the logging function choose the best log target. */
  LOG_ID_DEFAULT = 0x7FFFFFFF
} log_id_t;

/**
 * Writes the constant string `text` to the log buffer `id`,