Diff for /qemu/monitor.c between versions 1.1.1.11 and 1.1.1.12

version 1.1.1.11, 2018/04/24 17:49:59 version 1.1.1.12, 2018/04/24 17:57:48
Line 334  void monitor_protocol_event(MonitorEvent Line 334  void monitor_protocol_event(MonitorEvent
 {  {
     QDict *qmp;      QDict *qmp;
     const char *event_name;      const char *event_name;
     Monitor *mon = cur_mon;      Monitor *mon;
   
     assert(event < QEVENT_MAX);      assert(event < QEVENT_MAX);
   
     if (!monitor_ctrl_mode(mon))  
         return;  
   
     switch (event) {      switch (event) {
         case QEVENT_DEBUG:          case QEVENT_DEBUG:
             event_name = "DEBUG";              event_name = "DEBUG";
Line 370  void monitor_protocol_event(MonitorEvent Line 367  void monitor_protocol_event(MonitorEvent
         qdict_put_obj(qmp, "data", data);          qdict_put_obj(qmp, "data", data);
     }      }
   
     monitor_json_emitter(mon, QOBJECT(qmp));      QLIST_FOREACH(mon, &mon_list, entry) {
           if (monitor_ctrl_mode(mon)) {
               monitor_json_emitter(mon, QOBJECT(qmp));
           }
       }
     QDECREF(qmp);      QDECREF(qmp);
 }  }
   

Removed from v.1.1.1.11  
changed lines
  Added in v.1.1.1.12


unix.superglobalmegacorp.com