X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fserial.c;h=288dbeb64b26b01bbdf9089dc757642c6eb8f06f;hb=5d20e4fc3a9b5b9cf762e67c23f817986d802bb7;hp=85eecc84eba93736ba6d7b95c6e54966c9abe072;hpb=aabc934443b56e393ff21430545257c50c3d4392;p=palacios.git diff --git a/palacios/src/devices/serial.c b/palacios/src/devices/serial.c index 85eecc8..288dbeb 100644 --- a/palacios/src/devices/serial.c +++ b/palacios/src/devices/serial.c @@ -1456,12 +1456,12 @@ static int serial_load(struct v3_chkpt_ctx * ctx, void * private_data) { snprintf(keyname, 128,"COM%d_int_state",i); V3_CHKPT_LOAD(ctx, keyname, serial->int_state,failout); - if (serial_buffer_load(ctx, i, &(serial->tx_buffer), "RX")) { + if (serial_buffer_load(ctx, i, &(serial->tx_buffer), "TX")) { PrintError(VM_NONE, VCORE_NONE, "Failed to load serial tx buffer %d\n",i); goto failout; } - if (serial_buffer_load(ctx, i, &(serial->rx_buffer), "TX")) { + if (serial_buffer_load(ctx, i, &(serial->rx_buffer), "RX")) { PrintError(VM_NONE, VCORE_NONE, "Failed to load serial rx buffer %d\n",i); goto failout; }