From d6ccfe003a25bafdc9a6de93c25785fc4e42fcf4 Mon Sep 17 00:00:00 2001
From: "Anthony J. Bentley" <anthony@anjbe.name>
Date: Thu, 6 Aug 2015 01:50:52 -0600
Subject: [PATCH] SDL: Document -l in the manual

---
 doc/mgba.6 | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/doc/mgba.6 b/doc/mgba.6
index 3d12ea685..b29ecf010 100644
--- a/doc/mgba.6
+++ b/doc/mgba.6
@@ -14,6 +14,7 @@
 .Op Fl 123456dfg
 .Op Fl b Ar biosfile
 .Op Fl c Ar cheatfile
+.Op Fl l Ar loglevel
 .Op Fl p Ar patchfile
 .Op Fl s Ar n
 .Op Fl v Ar moviefile
@@ -52,6 +53,34 @@ Start a
 .Xr gdb 1
 session.
 By default the session starts on port 2345.
+.It Fl l Ar loglevel
+Log messages during emulation to
+.Dv stdout .
+.Ar loglevel
+is a bitmask defining which types of messages to log:
+.Bl -inset
+.It 0x01
+fatal errors
+.It 0x02
+errors
+.It 0x04
+warnings
+.It 0x08
+informative messages
+.It 0x10
+debugging messages
+.It 0x20
+stub messages
+.It 0x100
+in\(hygame errors
+.It 0x200
+software interrupts
+.It 0x400
+emulator status messages
+.It 0x800
+serial I/O messages
+.El
+The default is to log warnings, errors, fatal errors, and status messages.
 .It Fl p Ar patchfile , Fl -patch Ar patchfile
 Specify a patch file in IPS or UPS format.
 .It Fl s Ar n , Fl -frameskip Ar n