Home
last modified time | relevance | path

Searched hist:"8 fbf66121253969e59fe40de66e55bb2f27c5090" (Results 1 – 2 of 2) sorted by relevance

/qemu/include/io/
H A Dchannel.h8fbf66121253969e59fe40de66e55bb2f27c5090 Thu Sep 29 15:52:35 UTC 2016 Felipe Franciosi <felipe@nutanix.com> io: Fix double shift usages on QIOChannel features

When QIOChannels were introduced in 666a3af9, the feature bits were
already defined shifted. However, when using them, the code was shifting
them again. The incorrect use was consistent until 74b6ce43, where
QIO_CHANNEL_FEATURE_LISTEN was defined shifted but tested unshifted.

This patch changes the definition to be unshifted and fixes the
incorrect usage introduced on 74b6ce43.

Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
/qemu/io/
H A Dchannel-socket.c8fbf66121253969e59fe40de66e55bb2f27c5090 Thu Sep 29 15:52:35 UTC 2016 Felipe Franciosi <felipe@nutanix.com> io: Fix double shift usages on QIOChannel features

When QIOChannels were introduced in 666a3af9, the feature bits were
already defined shifted. However, when using them, the code was shifting
them again. The incorrect use was consistent until 74b6ce43, where
QIO_CHANNEL_FEATURE_LISTEN was defined shifted but tested unshifted.

This patch changes the definition to be unshifted and fixes the
incorrect usage introduced on 74b6ce43.

Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>