[PATCH v2 36/48] bsd-user: style tweak: Use preferred block comments

imp@bsdimp.com posted 48 patches 4 years, 9 months ago
Maintainers: Kyle Evans <kevans@freebsd.org>, Warner Losh <imp@bsdimp.com>
[PATCH v2 36/48] bsd-user: style tweak: Use preferred block comments
Posted by imp@bsdimp.com 4 years, 9 months ago
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 36/48] bsd-user: style tweak: Use preferred block comments
Posted by Richard Henderson 4 years, 9 months ago
On 4/24/21 9:00 AM, imp@bsdimp.com wrote:
> 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(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~