blob: e403e30c61f286f39d3bf61d1221fed7c7393f2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
vnc: 0.774
device: 0.719
performance: 0.711
register: 0.679
mistranslation: 0.671
socket: 0.656
network: 0.608
ppc: 0.579
virtual: 0.537
graphic: 0.505
kernel: 0.504
VMM: 0.442
files: 0.440
semantic: 0.407
permissions: 0.401
hypervisor: 0.383
PID: 0.368
peripherals: 0.342
boot: 0.320
i386: 0.319
KVM: 0.313
risc-v: 0.307
TCG: 0.305
architecture: 0.301
arm: 0.288
debug: 0.266
x86: 0.211
user-level: 0.144
assembly: 0.068
hw/virtio/virtio-rng.c:150: bad test ?
hw/virtio/virtio-rng.c:150:31: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if (!vrng->conf.period_ms > 0) {
error_setg(errp, "'period' parameter expects a positive integer");
return;
}
Maybe better code
if (vrng->conf.period_ms <= 0) {
error_setg(errp, "'period' parameter expects a positive integer");
return;
}
Fixed here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=a3a292c420d2fec3c07
|