typofixes - v4

Signed-off-by: Veres Lajos <vlajos@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Veres Lajos 2015-09-08 22:45:14 +01:00 committed by Michael Tokarev
parent 33b23b4b5e
commit 67cc32ebfd
35 changed files with 47 additions and 48 deletions

View File

@ -357,7 +357,7 @@ fetch_data(struct disassemble_info *info, bfd_byte *addr)
#define Rd { OP_R, d_mode } #define Rd { OP_R, d_mode }
#define Rm { OP_R, m_mode } #define Rm { OP_R, m_mode }
#define Ib { OP_I, b_mode } #define Ib { OP_I, b_mode }
#define sIb { OP_sI, b_mode } /* sign extened byte */ #define sIb { OP_sI, b_mode } /* sign extended byte */
#define Iv { OP_I, v_mode } #define Iv { OP_I, v_mode }
#define Iq { OP_I, q_mode } #define Iq { OP_I, q_mode }
#define Iv64 { OP_I64, v_mode } #define Iv64 { OP_I64, v_mode }

View File

@ -613,7 +613,7 @@ static const struct s390_operand s390_operands[] =
names of the instruction format that you can find in the principals names of the instruction format that you can find in the principals
of operation. of operation.
2) the last part of the definition (y in INSTR_x_y) gives you an idea 2) the last part of the definition (y in INSTR_x_y) gives you an idea
which operands the binary represenation of the instruction has. which operands the binary representation of the instruction has.
The meanings of the letters in y are: The meanings of the letters in y are:
a - access register a - access register
c - control register c - control register
@ -627,7 +627,7 @@ static const struct s390_operand s390_operands[] =
m - mode field, 4 bit m - mode field, 4 bit
0 - operand skipped. 0 - operand skipped.
The order of the letters reflects the layout of the format in The order of the letters reflects the layout of the format in
storage and not the order of the paramaters of the instructions. storage and not the order of the parameters of the instructions.
The use of the letters is not a 100% match with the PoP but it is The use of the letters is not a 100% match with the PoP but it is
quite close. quite close.

View File

@ -41,8 +41,8 @@ When the guest runs in "real mode" (in powerpc lingua this means
with MMU disabled, ie guest effective == guest physical), it only with MMU disabled, ie guest effective == guest physical), it only
has access to a subset of memory and no IOs. has access to a subset of memory and no IOs.
PAPR provides a set of hypervisor calls to perform cachable or PAPR provides a set of hypervisor calls to perform cacheable or
non-cachable accesses to any guest physical addresses that the non-cacheable accesses to any guest physical addresses that the
guest can use in order to access IO devices while in real mode. guest can use in order to access IO devices while in real mode.
This is typically used by the firmware running in the guest. This is typically used by the firmware running in the guest.

View File

@ -122,7 +122,7 @@ There are a few things to be noticed:
Now a little hack is needed. As we're still using the old QMP server we need Now a little hack is needed. As we're still using the old QMP server we need
to add the new command to its internal dispatch table. This step won't be to add the new command to its internal dispatch table. This step won't be
required in the near future. Open the qmp-commands.hx file and add the required in the near future. Open the qmp-commands.hx file and add the
following in the botton: following at the bottom:
{ {
.name = "hello-world", .name = "hello-world",

View File

@ -1177,7 +1177,7 @@ void OPLResetChip(FM_OPL *OPL)
OPLWriteReg(OPL,0x03,0); /* Timer2 */ OPLWriteReg(OPL,0x03,0); /* Timer2 */
OPLWriteReg(OPL,0x04,0); /* IRQ mask clear */ OPLWriteReg(OPL,0x04,0); /* IRQ mask clear */
for(i = 0xff ; i >= 0x20 ; i-- ) OPLWriteReg(OPL,i,0); for(i = 0xff ; i >= 0x20 ; i-- ) OPLWriteReg(OPL,i,0);
/* reset OPerator paramater */ /* reset operator parameter */
for( c = 0 ; c < OPL->max_ch ; c++ ) for( c = 0 ; c < OPL->max_ch ; c++ )
{ {
OPL_CH *CH = &OPL->P_CH[c]; OPL_CH *CH = &OPL->P_CH[c];

View File

@ -506,7 +506,7 @@ qemu_irq qdev_get_gpio_out_connector(DeviceState *dev, const char *name, int n)
return ret; return ret;
} }
/* disconnect a GPIO ouput, returning the disconnected input (if any) */ /* disconnect a GPIO output, returning the disconnected input (if any) */
static qemu_irq qdev_disconnect_gpio_out_named(DeviceState *dev, static qemu_irq qdev_disconnect_gpio_out_named(DeviceState *dev,
const char *name, int n) const char *name, int n)

View File

@ -138,7 +138,7 @@ static void tempsensor_clkedge(struct tempsensor_t *s,
s->count = 16; s->count = 16;
if ((s->regs[0] & 0xff) == 0) { if ((s->regs[0] & 0xff) == 0) {
/* 25 degrees celcius. */ /* 25 degrees celsius. */
s->shiftreg = 0x0b9f; s->shiftreg = 0x0b9f;
} else if ((s->regs[0] & 0xff) == 0xff) { } else if ((s->regs[0] & 0xff) == 0xff) {
/* Sensor ID, 0x8100 LM70. */ /* Sensor ID, 0x8100 LM70. */

View File

@ -159,7 +159,7 @@ static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl)
/* /*
* use ssd.lock to protect render_update_cookie_num. * use ssd.lock to protect render_update_cookie_num.
* qxl_render_update is called by io thread or vcpu thread, and the completion * qxl_render_update is called by io thread or vcpu thread, and the completion
* callbacks are called by spice_server thread, defering to bh called from the * callbacks are called by spice_server thread, deferring to bh called from the
* io thread. * io thread.
*/ */
void qxl_render_update(PCIQXLDevice *qxl) void qxl_render_update(PCIQXLDevice *qxl)

View File

@ -133,7 +133,7 @@ struct XilinxAXIDMA {
}; };
/* /*
* Helper calls to extract info from desriptors and other trivial * Helper calls to extract info from descriptors and other trivial
* state from regs. * state from regs.
*/ */
static inline int stream_desc_sof(struct SDesc *d) static inline int stream_desc_sof(struct SDesc *d)

View File

@ -69,7 +69,7 @@ static const VMStateDescription vmstate_stellaris_gamepad = {
} }
}; };
/* Returns an array 5 ouput slots. */ /* Returns an array of 5 output slots. */
void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode) void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode)
{ {
gamepad_state *s; gamepad_state *s;

View File

@ -739,7 +739,7 @@ int xics_alloc(XICSState *icp, int src, int irq_hint, bool lsi)
} }
/* /*
* Allocate block of consequtive IRQs, returns a number of the first. * Allocate block of consecutive IRQs, and return the number of the first IRQ in the block.
* If align==true, aligns the first IRQ number to num. * If align==true, aligns the first IRQ number to num.
*/ */
int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align) int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align)

View File

@ -353,7 +353,7 @@ static ssize_t etsec_receive(NetClientState *nc,
etsec->need_flush = false; etsec->need_flush = false;
ret = etsec_rx_ring_write(etsec, buf, size); ret = etsec_rx_ring_write(etsec, buf, size);
if (ret == 0) { if (ret == 0) {
/* The packet will be queued, let's flush it when buffer is avilable /* The packet will be queued, let's flush it when buffer is available
* again. */ * again. */
etsec->need_flush = true; etsec->need_flush = true;
} }

View File

@ -46,7 +46,7 @@ typedef struct PL181State {
int32_t fifo_pos; int32_t fifo_pos;
int32_t fifo_len; int32_t fifo_len;
/* The linux 2.6.21 driver is buggy, and misbehaves if new data arrives /* The linux 2.6.21 driver is buggy, and misbehaves if new data arrives
while it is reading the FIFO. We hack around this be defering while it is reading the FIFO. We hack around this by deferring
subsequent transfers until after the driver polls the status word. subsequent transfers until after the driver polls the status word.
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=4446/1 http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=4446/1
*/ */

View File

@ -3377,7 +3377,7 @@ static bool vfio_radeon_smc_is_running(VFIOPCIDevice *vdev)
uint32_t clk, pc_c; uint32_t clk, pc_c;
/* /*
* Registers 200h and 204h are index and data registers for acessing * Registers 200h and 204h are index and data registers for accessing
* indirect configuration registers within the device. * indirect configuration registers within the device.
*/ */
vfio_region_write(&vdev->bars[5].region, 0x200, 0x80000004, 4); vfio_region_write(&vdev->bars[5].region, 0x200, 0x80000004, 4);

View File

@ -40,7 +40,7 @@ static int xen_host_pci_sysfs_path(const XenHostPCIDevice *d,
d->domain, d->bus, d->dev, d->func, name); d->domain, d->bus, d->dev, d->func, name);
if (rc >= size || rc < 0) { if (rc >= size || rc < 0) {
/* The ouput is truncated or an other error is encountered */ /* The output is truncated, or some other error was encountered */
return -ENODEV; return -ENODEV;
} }
return 0; return 0;

View File

@ -229,7 +229,7 @@ const char *scsi_command_name(uint8_t cmd);
#define MODE_PAGE_TO_PROTECT 0x1d #define MODE_PAGE_TO_PROTECT 0x1d
#define MODE_PAGE_CAPABILITIES 0x2a #define MODE_PAGE_CAPABILITIES 0x2a
#define MODE_PAGE_ALLS 0x3f #define MODE_PAGE_ALLS 0x3f
/* Not in Mt. Fuji, but in ATAPI 2.6 -- depricated now in favor /* Not in Mt. Fuji, but in ATAPI 2.6 -- deprecated now in favor
* of MODE_PAGE_SENSE_POWER */ * of MODE_PAGE_SENSE_POWER */
#define MODE_PAGE_CDROM 0x0d #define MODE_PAGE_CDROM 0x0d

View File

@ -1146,7 +1146,7 @@ MemTxResult memory_region_dispatch_write(MemoryRegion *mr,
* address_space_init: initializes an address space * address_space_init: initializes an address space
* *
* @as: an uninitialized #AddressSpace * @as: an uninitialized #AddressSpace
* @root: a #MemoryRegion that routes addesses for the address space * @root: a #MemoryRegion that routes addresses for the address space
* @name: an address space name. The name is only used for debugging * @name: an address space name. The name is only used for debugging
* output. * output.
*/ */

View File

@ -57,7 +57,7 @@ struct VCardAPDUHeader {
unsigned char ah_p1; unsigned char ah_p1;
unsigned char ah_p2; unsigned char ah_p2;
unsigned char ah_Le; unsigned char ah_Le;
unsigned char ah_body[1]; /* indefinate length */ unsigned char ah_body[1]; /* indefinite length */
}; };
/* /*

View File

@ -186,7 +186,7 @@ uInt decContextGetStatus(decContext *context) {
/* newstatus is the source for the bits to be restored */ /* newstatus is the source for the bits to be restored */
/* mask indicates the bits to be restored (the status bit that */ /* mask indicates the bits to be restored (the status bit that */
/* corresponds to each 1 bit in the mask is set to the value of */ /* corresponds to each 1 bit in the mask is set to the value of */
/* the correspnding bit in newstatus) */ /* the corresponding bit in newstatus) */
/* returns context */ /* returns context */
/* */ /* */
/* No error is possible. */ /* No error is possible. */

View File

@ -2238,7 +2238,7 @@ decNumber * decNumberPower(decNumber *res, const decNumber *lhs,
/* if a negative power the constant 1 is needed, and if not subset */ /* if a negative power the constant 1 is needed, and if not subset */
/* invert the lhs now rather than inverting the result later */ /* invert the lhs now rather than inverting the result later */
if (decNumberIsNegative(rhs)) { /* was a **-n [hence digits>0] */ if (decNumberIsNegative(rhs)) { /* was a **-n [hence digits>0] */
decNumber *inv=invbuff; /* asssume use fixed buffer */ decNumber *inv=invbuff; /* assume use fixed buffer */
decNumberCopy(&dnOne, dac); /* dnOne=1; [needed now or later] */ decNumberCopy(&dnOne, dac); /* dnOne=1; [needed now or later] */
#if DECSUBSET #if DECSUBSET
if (set->extended) { /* need to calculate 1/lhs */ if (set->extended) { /* need to calculate 1/lhs */
@ -3849,7 +3849,7 @@ static void decToString(const decNumber *dn, char *string, Flag eng) {
/* */ /* */
/* Addition, especially x=x+1, is speed-critical. */ /* Addition, especially x=x+1, is speed-critical. */
/* The static buffer is larger than might be expected to allow for */ /* The static buffer is larger than might be expected to allow for */
/* calls from higher-level funtions (notable exp). */ /* calls from higher-level functions (notably exp). */
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
static decNumber * decAddOp(decNumber *res, const decNumber *lhs, static decNumber * decAddOp(decNumber *res, const decNumber *lhs,
const decNumber *rhs, decContext *set, const decNumber *rhs, decContext *set,
@ -4263,7 +4263,7 @@ static decNumber * decAddOp(decNumber *res, const decNumber *lhs,
/* long subtractions. These are acc and var1 respectively. */ /* long subtractions. These are acc and var1 respectively. */
/* var1 is a copy of the lhs coefficient, var2 is the rhs coefficient.*/ /* var1 is a copy of the lhs coefficient, var2 is the rhs coefficient.*/
/* The static buffers may be larger than might be expected to allow */ /* The static buffers may be larger than might be expected to allow */
/* for calls from higher-level funtions (notable exp). */ /* for calls from higher-level functions (notably exp). */
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
static decNumber * decDivideOp(decNumber *res, static decNumber * decDivideOp(decNumber *res,
const decNumber *lhs, const decNumber *rhs, const decNumber *lhs, const decNumber *rhs,
@ -5254,7 +5254,7 @@ static decNumber * decMultiplyOp(decNumber *res, const decNumber *lhs,
/* exp(-x) where x can be the tiniest number (Ntiny). */ /* exp(-x) where x can be the tiniest number (Ntiny). */
/* */ /* */
/* 2. Normalizing x to be <=0.1 (instead of <=1) reduces loop */ /* 2. Normalizing x to be <=0.1 (instead of <=1) reduces loop */
/* iterations by appoximately a third with additional (although */ /* iterations by approximately a third with additional (although */
/* diminishing) returns as the range is reduced to even smaller */ /* diminishing) returns as the range is reduced to even smaller */
/* fractions. However, h (the power of 10 used to correct the */ /* fractions. However, h (the power of 10 used to correct the */
/* result at the end, see below) must be kept <=8 as otherwise */ /* result at the end, see below) must be kept <=8 as otherwise */

View File

@ -3939,7 +3939,6 @@ static abi_long do_ioctl(int fd, int cmd, abi_long arg)
break; break;
case TYPE_PTRVOID: case TYPE_PTRVOID:
case TYPE_INT: case TYPE_INT:
/* int argment */
ret = get_errno(ioctl(fd, ie->host_cmd, arg)); ret = get_errno(ioctl(fd, ie->host_cmd, arg));
break; break;
case TYPE_PTR: case TYPE_PTR:

View File

@ -969,7 +969,7 @@ struct target_pollfd {
(struct cdrom_multisession) */ (struct cdrom_multisession) */
#define TARGET_CDROM_GET_MCN 0x5311 /* Obtain the "Universal Product Code" #define TARGET_CDROM_GET_MCN 0x5311 /* Obtain the "Universal Product Code"
if available (struct cdrom_mcn) */ if available (struct cdrom_mcn) */
#define TARGET_CDROM_GET_UPC TARGET_CDROM_GET_MCN /* This one is depricated, #define TARGET_CDROM_GET_UPC TARGET_CDROM_GET_MCN /* This one is deprecated,
but here anyway for compatibility */ but here anyway for compatibility */
#define TARGET_CDROMRESET 0x5312 /* hard-reset the drive */ #define TARGET_CDROMRESET 0x5312 /* hard-reset the drive */
#define TARGET_CDROMVOLREAD 0x5313 /* Get the drive's volume setting #define TARGET_CDROMVOLREAD 0x5313 /* Get the drive's volume setting
@ -2289,7 +2289,7 @@ struct target_f_owner_ex {
}; };
/* soundcard defines */ /* soundcard defines */
/* XXX: convert them all to arch indepedent entries */ /* XXX: convert them all to arch independent entries */
#define TARGET_SNDCTL_COPR_HALT TARGET_IOWR('C', 7, int); #define TARGET_SNDCTL_COPR_HALT TARGET_IOWR('C', 7, int);
#define TARGET_SNDCTL_COPR_LOAD 0xcfb04301 #define TARGET_SNDCTL_COPR_LOAD 0xcfb04301
#define TARGET_SNDCTL_COPR_RCODE 0xc0144303 #define TARGET_SNDCTL_COPR_RCODE 0xc0144303

View File

@ -2158,7 +2158,7 @@ static void transfer_memory_block(GuestMemoryBlock *mem_blk, bool sys2memblk,
ga_read_sysfs_file(dirfd, "removable", &removable, 1, &local_err); ga_read_sysfs_file(dirfd, "removable", &removable, 1, &local_err);
if (local_err) { if (local_err) {
/* if no 'removable' file, it does't support offline mem blk */ /* if no 'removable' file, it doesn't support offline mem blk */
if (errno == ENOENT) { if (errno == ENOENT) {
error_free(local_err); error_free(local_err);
mem_blk->can_offline = false; mem_blk->can_offline = false;

View File

@ -132,7 +132,7 @@ void alpha_cpu_unassigned_access(CPUState *cs, hwaddr addr,
env->error_code = 0; env->error_code = 0;
/* ??? We should cpu_restore_state to the faulting insn, but this hook /* ??? We should cpu_restore_state to the faulting insn, but this hook
does not have access to the retaddr value from the orignal helper. does not have access to the retaddr value from the original helper.
It's all moot until the QEMU PALcode grows an MCHK handler. */ It's all moot until the QEMU PALcode grows an MCHK handler. */
cpu_loop_exit(cs); cpu_loop_exit(cs);

View File

@ -224,8 +224,8 @@ typedef struct CPUARMState {
}; };
/* MMU translation table base control. */ /* MMU translation table base control. */
TCR tcr_el[4]; TCR tcr_el[4];
uint32_t c2_data; /* MPU data cachable bits. */ uint32_t c2_data; /* MPU data cacheable bits. */
uint32_t c2_insn; /* MPU instruction cachable bits. */ uint32_t c2_insn; /* MPU instruction cacheable bits. */
union { /* MMU domain access control register union { /* MMU domain access control register
* MPU write buffer control. * MPU write buffer control.
*/ */

View File

@ -151,7 +151,7 @@ typedef struct CPUCRISState {
uint32_t sregs[4][16]; uint32_t sregs[4][16];
/* Linear feedback shift reg in the mmu. Used to provide pseudo /* Linear feedback shift reg in the mmu. Used to provide pseudo
randomness for the 'hint' the mmu gives to sw for chosing valid randomness for the 'hint' the mmu gives to sw for choosing valid
sets on TLB refills. */ sets on TLB refills. */
uint32_t mmu_rand_lfsr; uint32_t mmu_rand_lfsr;

View File

@ -102,9 +102,9 @@ typedef struct DisasContext {
int cc_size_uptodate; /* -1 invalid or last written value. */ int cc_size_uptodate; /* -1 invalid or last written value. */
int cc_x_uptodate; /* 1 - ccs, 2 - known | X_FLAG. 0 not uptodate. */ int cc_x_uptodate; /* 1 - ccs, 2 - known | X_FLAG. 0 not up-to-date. */
int flags_uptodate; /* Wether or not $ccs is uptodate. */ int flags_uptodate; /* Whether or not $ccs is up-to-date. */
int flagx_known; /* Wether or not flags_x has the x flag known at int flagx_known; /* Whether or not flags_x has the x flag known at
translation time. */ translation time. */
int flags_x; int flags_x;

View File

@ -692,7 +692,7 @@ void mips_cpu_do_interrupt(CPUState *cs)
goto set_EPC; goto set_EPC;
case EXCP_DWATCH: case EXCP_DWATCH:
cause = 23; cause = 23;
/* XXX: TODO: manage defered watch exceptions */ /* XXX: TODO: manage deferred watch exceptions */
goto set_EPC; goto set_EPC;
case EXCP_MCHECK: case EXCP_MCHECK:
cause = 24; cause = 24;

View File

@ -588,9 +588,9 @@ int kvm_s390_set_clock(uint8_t *tod_high, uint64_t *tod_low)
* @addr: the logical start address in guest memory * @addr: the logical start address in guest memory
* @ar: the access register number * @ar: the access register number
* @hostbuf: buffer in host memory. NULL = do only checks w/o copying * @hostbuf: buffer in host memory. NULL = do only checks w/o copying
* @len: length that should be transfered * @len: length that should be transferred
* @is_write: true = write, false = read * @is_write: true = write, false = read
* Returns: 0 on success, non-zero if an exception or error occured * Returns: 0 on success, non-zero if an exception or error occurred
* *
* Use KVM ioctl to read/write from/to guest memory. An access exception * Use KVM ioctl to read/write from/to guest memory. An access exception
* is injected into the vCPU in case of translation errors. * is injected into the vCPU in case of translation errors.

View File

@ -59,7 +59,7 @@ int superh_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int rw,
int cpu_sh4_is_cached(CPUSH4State * env, target_ulong addr) int cpu_sh4_is_cached(CPUSH4State * env, target_ulong addr)
{ {
/* For user mode, only U0 area is cachable. */ /* For user mode, only U0 area is cacheable. */
return !(addr & 0x80000000); return !(addr & 0x80000000);
} }
@ -825,11 +825,11 @@ int cpu_sh4_is_cached(CPUSH4State * env, target_ulong addr)
/* check area */ /* check area */
if (env->sr & (1u << SR_MD)) { if (env->sr & (1u << SR_MD)) {
/* For previledged mode, P2 and P4 area is not cachable. */ /* For privileged mode, P2 and P4 area is not cacheable. */
if ((0xA0000000 <= addr && addr < 0xC0000000) || 0xE0000000 <= addr) if ((0xA0000000 <= addr && addr < 0xC0000000) || 0xE0000000 <= addr)
return 0; return 0;
} else { } else {
/* For user mode, only U0 area is cachable. */ /* For user mode, only U0 area is cacheable. */
if (0x80000000 <= addr) if (0x80000000 <= addr)
return 0; return 0;
} }

View File

@ -1594,7 +1594,7 @@ static void tcg_out_tb_finalize(TCGContext *s)
/* The out-of-line thunks are all the same; load the return address /* The out-of-line thunks are all the same; load the return address
from B0, load the GP, and branch to the code. Note that we are from B0, load the GP, and branch to the code. Note that we are
always post-call, so the register window has rolled, so we're always post-call, so the register window has rolled, so we're
using incomming parameter register numbers, not outgoing. */ using incoming parameter register numbers, not outgoing. */
if (dest == NULL) { if (dest == NULL) {
uintptr_t *desc = (uintptr_t *)helpers[x]; uintptr_t *desc = (uintptr_t *)helpers[x];
uintptr_t func = desc[0], gp = desc[1], disp; uintptr_t func = desc[0], gp = desc[1], disp;

View File

@ -1396,7 +1396,7 @@ static void tcg_liveness_analysis(TCGContext *s)
} }
} }
} }
/* input arguments are live for preceeding opcodes */ /* input arguments are live for preceding opcodes */
for (i = nb_oargs; i < nb_oargs + nb_iargs; i++) { for (i = nb_oargs; i < nb_oargs + nb_iargs; i++) {
arg = args[i]; arg = args[i];
dead_temps[arg] = 0; dead_temps[arg] = 0;
@ -1542,7 +1542,7 @@ static void tcg_liveness_analysis(TCGContext *s)
dead_args |= (1 << i); dead_args |= (1 << i);
} }
} }
/* input arguments are live for preceeding opcodes */ /* input arguments are live for preceding opcodes */
for (i = nb_oargs; i < nb_oargs + nb_iargs; i++) { for (i = nb_oargs; i < nb_oargs + nb_iargs; i++) {
arg = args[i]; arg = args[i];
dead_temps[arg] = 0; dead_temps[arg] = 0;

View File

@ -301,7 +301,7 @@ if __name__ == '__main__':
JSON: JSON:
'--command' accepts a JSON array of commands. Each command presents '--command' accepts a JSON array of commands. Each command presents
an application under test with all its paramaters as a list of strings, an application under test with all its parameters as a list of strings,
e.g. ["qemu-io", "$test_img", "-c", "write $off $len"]. e.g. ["qemu-io", "$test_img", "-c", "write $off $len"].
Supported application aliases: 'qemu-img' and 'qemu-io'. Supported application aliases: 'qemu-img' and 'qemu-io'.

View File

@ -889,7 +889,7 @@ class TestRepairQuorum(iotests.QMPTestCase):
target=quorum_repair_img, format=iotests.imgfmt) target=quorum_repair_img, format=iotests.imgfmt)
self.assert_qmp(result, 'error/class', 'GenericError') self.assert_qmp(result, 'error/class', 'GenericError')
def test_unexistant_replaces(self): def test_nonexistent_replaces(self):
if not self.has_quorum(): if not self.has_quorum():
return return

View File

@ -389,7 +389,7 @@ void qemu_event_wait(QemuEvent *ev)
/* /*
* Leave the event reset and tell qemu_event_set that there * Leave the event reset and tell qemu_event_set that there
* are waiters. No need to retry, because there cannot be * are waiters. No need to retry, because there cannot be
* a concurent busy->free transition. After the CAS, the * a concurrent busy->free transition. After the CAS, the
* event will be either set or busy. * event will be either set or busy.
*/ */
if (atomic_cmpxchg(&ev->value, EV_FREE, EV_BUSY) == EV_SET) { if (atomic_cmpxchg(&ev->value, EV_FREE, EV_BUSY) == EV_SET) {