projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf736fe
)
ide-test: Add enum value for DEV
author
Kevin Wolf
<kwolf@redhat.com>
Wed, 5 Jun 2013 13:17:56 +0000
(15:17 +0200)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Thu, 6 Jun 2013 09:27:24 +0000
(11:27 +0200)
Get rid of the magic number.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/ide-test.c
patch
|
blob
|
history
diff --git
a/tests/ide-test.c
b/tests/ide-test.c
index 365e9959ffb41543f0f31cdebcf0f77d73fce377..1c31a2e0ba5fe691edc2f2bf0a617aa12447ee95 100644
(file)
--- a/
tests/ide-test.c
+++ b/
tests/ide-test.c
@@
-64,6
+64,7
@@
enum {
};
enum {
+ DEV = 0x10,
LBA = 0x40,
};
@@
-394,7
+395,7
@@
static void test_identify(void)
/* Read in the IDENTIFY buffer and check registers */
data = inb(IDE_BASE + reg_device);
- g_assert_cmpint(data &
0x10
, ==, 0);
+ g_assert_cmpint(data &
DEV
, ==, 0);
for (i = 0; i < 256; i++) {
data = inb(IDE_BASE + reg_status);