---
tests/.gitignore |1 +
tests/Makefile.am |2 +
tests/ioctl_dm-v.c|2 +
tests/ioctl_dm-v.test | 12
tests/ioctl_dm.c | 178 +++--
tests/ioctl_dm.test |2 +-
6 files changed, 160 insertions(+), 37 deletions(-
---
tests/ioctl_dm.c | 505 ++
1 file changed, 505 insertions(+)
diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c
index 24232b7..0b2c5a7 100644
--- a/tests/ioctl_dm.c
+++ b/tests/ioctl_dm.c
@@ -2,13 +2,26 @@
#ifdef HAVE_LINUX_DM_IOCTL_H
+#
---
tests/.gitignore |1 +
1 file changed, 1 insertion(+)
diff --git a/tests/.gitignore b/tests/.gitignore
index a6d014d..9045117 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -103,6 +103,7 @@ getxxid
inet-cmsg
ioctl
ioctl_block
+ioctl_dm
ioctl_evdev
ioctl_evdev-v
ioctl_mtd
--
---
tests/ioctl_dm.c|2 +-
tests/ioctl_dm.test |2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c
index 6ad4ea9..0a3bbf4 100644
--- a/tests/ioctl_dm.c
+++ b/tests/ioctl_dm.c
@@ -77,7 +77,7 @@ main(void)
printf("ioctl(-1, DM
---
tests/ioctl_dm.c |8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c
index 261983c..24232b7 100644
--- a/tests/ioctl_dm.c
+++ b/tests/ioctl_dm.c
@@ -67,12 +67,12 @@ main(void)
init_s(&s.ioc, sizeof(s), offsetof(struct s, u)
---
dm.c |4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dm.c b/dm.c
index d846233..b1d455c 100644
--- a/dm.c
+++ b/dm.c
@@ -342,10 +342,12 @@ dm_decode_dm_target_msg(struct tcb *tcp, unsigned long
addr,
offset + target_msg_message_offs <= ioc->data_size) {
---
tests/ioctl_dm.c | 21 +++--
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c
index 0a3bbf4..5f2689c 100644
--- a/tests/ioctl_dm.c
+++ b/tests/ioctl_dm.c
@@ -1,10 +1,13 @@
#include "tests.h"
-#include
-#include
-#include
-
---
tests/ioctl_dm.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c
index 5f2689c..261983c 100644
--- a/tests/ioctl_dm.c
+++ b/tests/ioctl_dm.c
@@ -24,7 +24,8 @@ static struct s {
} u;
} s;
-static void init_s(struct dm_ioctl
This enables printing size-limited (expectedly) ASCIZ strings.
---
util.c | 18 +++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/util.c b/util.c
index 23a5fdb..00148d4 100644
--- a/util.c
+++ b/util.c
@@ -820,13 +820,13 @@ printstr_ex(struct tcb *tcp, long addr,
Hello.
Aside from additional checks themselves, this patchset also contains two
notable changes:
* Fix for the previous patchset - misplaced comma printing ("dm: Fix comma
printing for the case when dm_target_msg structure is inaccessible").
* Update of printstr_ex call, which enables proper
10 matches
Mail list logo