ltp.lists.linux.it archive mirror
 help / color / mirror / Atom feed
* [LTP] [PATCH] lib/tst_test.c: Use %u instead of %lu for tmpfs_size
@ 2021-10-14  2:14 Yang Xu
  2021-10-14  2:54 ` Li Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Xu @ 2021-10-14  2:14 UTC (permalink / raw)
  To: ltp

Fixes: 21c8759f4 ("lib: adjust the tmpfs size according to .dev_min_size and MemAvailable")
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 lib/tst_test.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/tst_test.c b/lib/tst_test.c
index ec80e17a6..02ae28335 100644
--- a/lib/tst_test.c
+++ b/lib/tst_test.c
@@ -906,11 +906,11 @@ static const char *limit_tmpfs_mount_size(const char *mnt_data,
 		tst_brk(TCONF, "No enough memory for tmpfs use");
 
 	if (mnt_data)
-		snprintf(buf, buf_size, "%s,size=%luM", mnt_data, tmpfs_size);
+		snprintf(buf, buf_size, "%s,size=%uM", mnt_data, tmpfs_size);
 	else
-		snprintf(buf, buf_size, "size=%luM", tmpfs_size);
+		snprintf(buf, buf_size, "size=%uM", tmpfs_size);
 
-	tst_res(TINFO, "Limiting tmpfs size to %luMB", tmpfs_size);
+	tst_res(TINFO, "Limiting tmpfs size to %uMB", tmpfs_size);
 
 	return buf;
 }
-- 
2.23.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] lib/tst_test.c: Use %u instead of %lu for tmpfs_size
  2021-10-14  2:14 [LTP] [PATCH] lib/tst_test.c: Use %u instead of %lu for tmpfs_size Yang Xu
@ 2021-10-14  2:54 ` Li Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Li Wang @ 2021-10-14  2:54 UTC (permalink / raw)
  To: Yang Xu; +Cc: LTP List


[-- Attachment #1.1: Type: text/plain, Size: 42 bytes --]

Good catch, pushed.

-- 
Regards,
Li Wang

[-- Attachment #1.2: Type: text/html, Size: 252 bytes --]

[-- Attachment #2: Type: text/plain, Size: 60 bytes --]


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-14  2:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-14  2:14 [LTP] [PATCH] lib/tst_test.c: Use %u instead of %lu for tmpfs_size Yang Xu
2021-10-14  2:54 ` Li Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).