Skip to contentSkip to conversation

fix default size handling in monitor.

PATCH Superseded Gleb Natapov 1 participant 1 message Jun 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix default size handling in monitor.

Hi,

If /i format is used once (with x/xp/p command) default_fmt_size is set
to -1 and subsequent commands of the form /x outputs nothing. Included patched fixes this by setting default_fmt_size only if the command is not of format /i.

---

monitor.c +1 -1
index 1eb8be1..4df4d87 100644
@@ -2270,8 +2270,8 @@ static void monitor_handle_command(const char *cmdline)
                         /* for 'i', not specifying a size gives -1 as size */
                         if (size < 0)
                             size = default_fmt_size;
+                        default_fmt_size = size;
                     }
-                    default_fmt_size = size;
                     default_fmt_format = format;
                 } else {
                     count = 1;

--
Gleb.