[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 36/48] bsd-user: style tweak: Use preferred block comments
From: |
imp |
Subject: |
[PATCH v2 36/48] bsd-user: style tweak: Use preferred block comments |
Date: |
Sat, 24 Apr 2021 10:00:04 -0600 |
From: Warner Losh <imp@bsdimp.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/uaccess.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/bsd-user/uaccess.c b/bsd-user/uaccess.c
index 89163257f4..7eb4546fed 100644
--- a/bsd-user/uaccess.c
+++ b/bsd-user/uaccess.c
@@ -4,9 +4,10 @@
#include "qemu.h"
-/* copy_from_user() and copy_to_user() are usually used to copy data
- * buffers between the target and host. These internally perform
- * locking/unlocking of the memory.
+/*
+ * copy_from_user() and copy_to_user() are usually used to copy data buffers
+ * between the target and host. These internally perform locking/unlocking of
+ * the memory.
*/
abi_long copy_from_user(void *hptr, abi_ulong gaddr, size_t len)
{
@@ -37,8 +38,10 @@ abi_long copy_to_user(abi_ulong gaddr, void *hptr, size_t
len)
return ret;
}
-/* Return the length of a string in target memory or -TARGET_EFAULT if
- access error */
+/*
+ * Return the length of a string in target memory or -TARGET_EFAULT if access
+ * error
+ */
abi_long target_strlen(abi_ulong guest_addr1)
{
uint8_t *ptr;
--
2.22.1
- Re: [PATCH v2 44/48] bsd-user: style tweak: use preferred block comments, (continued)
- [PATCH v2 48/48] bsd-user: put back a break; that had gone missing..., imp, 2021/04/24
- [PATCH v2 19/48] bsd-user: style tweak: move extern to header file, imp, 2021/04/24
- [PATCH v2 27/48] bsd-user: style tweak: space pedantry, imp, 2021/04/24
- [PATCH v2 35/48] bsd-user: style tweak: use {} for all if statements, format else correctly, imp, 2021/04/24
- [PATCH v2 30/48] bsd-user: style tweak: fix block comments, imp, 2021/04/24
- [PATCH v2 36/48] bsd-user: style tweak: Use preferred block comments,
imp <=
- [PATCH v2 46/48] bsd-user: style tweak: Return is not a function call., imp, 2021/04/24
- [PATCH v2 34/48] bsd-user: style tweak: don't assign in if statements, imp, 2021/04/24
- [PATCH v2 47/48] bsd-user: style tweak: don't assign in if statement., imp, 2021/04/24
- Re: [PATCH v2 00/48] bsd-user style and reorg patches, no-reply, 2021/04/24