You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2022/05/13 13:04:19 UTC

[GitHub] [mynewt-nimble] Kampi opened a new pull request, #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Kampi opened a new pull request, #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259

   Solution for ticket #1258.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] apache-mynewt-bot commented on pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
apache-mynewt-bot commented on PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#issuecomment-1133549609

   
   <!-- style-bot -->
   
   ## Style check summary
   
   #### No suggestions at this time!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] sjanc commented on pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
sjanc commented on PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#issuecomment-1132764524

   you can ignore style comments if this is not related to your change (we need to tune bot a bit...)
   
   As for commit message,   if the issue is due to C++ and not due to specific version of GCC, please adjust it as suggested by @kasjer 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] Kampi commented on a diff in pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
Kampi commented on code in PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#discussion_r877469988


##########
nimble/host/include/host/ble_uuid.h:
##########
@@ -82,20 +82,26 @@ typedef union {
 
 #define BLE_UUID16_INIT(uuid16)         \
     {                                   \
-        .u.type = BLE_UUID_TYPE_16,     \
-        .value = (uuid16),              \
+        .u = {                          \
+            .type = BLE_UUID_TYPE_16,   \
+        },                              \
+        .value = (uuid16(,            	\

Review Comment:
   Sorry didn´t see your message :) 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] Kampi commented on a diff in pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
Kampi commented on code in PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#discussion_r877469988


##########
nimble/host/include/host/ble_uuid.h:
##########
@@ -82,20 +82,26 @@ typedef union {
 
 #define BLE_UUID16_INIT(uuid16)         \
     {                                   \
-        .u.type = BLE_UUID_TYPE_16,     \
-        .value = (uuid16),              \
+        .u = {                          \
+            .type = BLE_UUID_TYPE_16,   \
+        },                              \
+        .value = (uuid16(,            	\

Review Comment:
   Sorry didn´t see your message :) - I was a little sloppy by adding this... I hope it´s okay now.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] Kampi commented on pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
Kampi commented on PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#issuecomment-1129977114

   Hi @sjanc
   
   I have added a few more pieces of information. Is this correct and / or do you need additional information?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] apache-mynewt-bot commented on pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
apache-mynewt-bot commented on PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#issuecomment-1133173447

   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is [here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### nimble/host/include/host/ble_uuid.h
   <details>
   
   ```diff
   @@ -96,7 +96,7 @@
            .value = (uuid32),              \
        }
    
   -#define BLE_UUID128_INIT(uuid128...)    \
   +#define BLE_UUID128_INIT(uuid128 ...)    \
        {                                   \
            .u = {                          \
                .type = BLE_UUID_TYPE_128,  \
   ```
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] sjanc merged pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
sjanc merged PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] apache-mynewt-bot commented on pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
apache-mynewt-bot commented on PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#issuecomment-1132768752

   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is [here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### nimble/host/include/host/ble_uuid.h
   <details>
   
   ```diff
   @@ -96,7 +96,7 @@
            .value = (uuid32),              \
        }
    
   -#define BLE_UUID128_INIT(uuid128...)    \
   +#define BLE_UUID128_INIT(uuid128 ...)    \
        {                                   \
            .u = {                          \
                .type = BLE_UUID_TYPE_128,  \
   ```
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] utzig commented on pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
utzig commented on PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#issuecomment-1132280862

   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is [here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### nimble/host/include/host/ble_uuid.h
   <details>
   
   ```diff
   @@ -96,7 +96,7 @@
            .value = (uuid32),              \
        }
    
   -#define BLE_UUID128_INIT(uuid128...)    \
   +#define BLE_UUID128_INIT(uuid128 ...)    \
        {                                   \
            .u = {                          \
                .type = BLE_UUID_TYPE_128,  \
   ```
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] Kampi commented on pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
Kampi commented on PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#issuecomment-1132473893

   Hi @utzig,
   can you please explain your issue? I have checked the coding standards and I have compared my file with the current file in the master branch and I did not understand your point, because it differs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] kasjer commented on a diff in pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
kasjer commented on code in PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#discussion_r878564857


##########
nimble/host/include/host/ble_uuid.h:
##########
@@ -82,20 +82,26 @@ typedef union {
 
 #define BLE_UUID16_INIT(uuid16)         \
     {                                   \
-        .u.type = BLE_UUID_TYPE_16,     \
+        .u = {                          \
+            .type = BLE_UUID_TYPE_16,   \
+        },                              \
         .value = (uuid16),              \
     }
 
 #define BLE_UUID32_INIT(uuid32)         \
     {                                   \
-        .u.type = BLE_UUID_TYPE_32,     \
+        .u = {                          \
+            .type = BLE_UUID_TYPE_32,   \
+        },                              \
         .value = (uuid32),              \
     }
 
 #define BLE_UUID128_INIT(uuid128...)    \
     {                                   \
-        .u.type = BLE_UUID_TYPE_128,    \
-        .value = { uuid128 },           \
+        .u = {                          \
+            .type = BLE_UUID_TYPE_128,  \
+        },                              \
+        .value = (uuid128),             \

Review Comment:
   here `{}` should be left alone as it was before
   ```c
   .value = { uuid128 },
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] Kampi commented on pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
Kampi commented on PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#issuecomment-1132085489

   Hi @kasjer,
   sorry for the review request. I´m checking the workflow for a modification on my pull request (it´s my first try, so, please have patience with me :) )


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] sjanc commented on pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
sjanc commented on PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#issuecomment-1129711707

   could you change commit message to follow convention used in project eg:
   "nimble/host: Fix build with GCC 8.4"
   
   and provide some information about environment and build error in commit message


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] kasjer commented on a diff in pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
kasjer commented on code in PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#discussion_r876429153


##########
nimble/host/include/host/ble_uuid.h:
##########
@@ -82,19 +82,25 @@ typedef union {
 
 #define BLE_UUID16_INIT(uuid16)         \
     {                                   \
-        .u.type = BLE_UUID_TYPE_16,     \
-        .value = (uuid16),              \
+        .u = {                          \
+            .type = BLE_UUID_TYPE_16,   \
+        },                              \
+        .value = { uuid16 },            \

Review Comment:
   `()` should stay as they were before, they should not be change to `{}` for scalar value 



##########
nimble/host/include/host/ble_uuid.h:
##########
@@ -82,19 +82,25 @@ typedef union {
 
 #define BLE_UUID16_INIT(uuid16)         \
     {                                   \
-        .u.type = BLE_UUID_TYPE_16,     \
-        .value = (uuid16),              \
+        .u = {                          \
+            .type = BLE_UUID_TYPE_16,   \
+        },                              \
+        .value = { uuid16 },            \
     }
 
 #define BLE_UUID32_INIT(uuid32)         \
     {                                   \
-        .u.type = BLE_UUID_TYPE_32,     \
-        .value = (uuid32),              \
+        .u = {                          \
+            .type = BLE_UUID_TYPE_32,   \
+        },                              \
+        .value = { uuid32 },            \

Review Comment:
   it should be
   ```c
    .value = (uuid32),
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] kasjer commented on a diff in pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
kasjer commented on code in PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#discussion_r877448754


##########
nimble/host/include/host/ble_uuid.h:
##########
@@ -82,20 +82,26 @@ typedef union {
 
 #define BLE_UUID16_INIT(uuid16)         \
     {                                   \
-        .u.type = BLE_UUID_TYPE_16,     \
-        .value = (uuid16),              \
+        .u = {                          \
+            .type = BLE_UUID_TYPE_16,   \
+        },                              \
+        .value = (uuid16(,            	\

Review Comment:
   almost there :)
   
   while you change second `(` to `)` you can also remove tab before `\`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] Kampi commented on a diff in pull request #1259: [FIX] Wrong structure format used by the BLE_UUIDy_INIT macros

Posted by GitBox <gi...@apache.org>.
Kampi commented on code in PR #1259:
URL: https://github.com/apache/mynewt-nimble/pull/1259#discussion_r877469988


##########
nimble/host/include/host/ble_uuid.h:
##########
@@ -82,20 +82,26 @@ typedef union {
 
 #define BLE_UUID16_INIT(uuid16)         \
     {                                   \
-        .u.type = BLE_UUID_TYPE_16,     \
-        .value = (uuid16),              \
+        .u = {                          \
+            .type = BLE_UUID_TYPE_16,   \
+        },                              \
+        .value = (uuid16(,            	\

Review Comment:
   Sorry didn´t see your message :) - hope it´s okay now.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org