You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/11/23 19:06:50 UTC

[7/8] incubator-mynewt-core git commit: Fix comment style

Fix comment style


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/62d05db3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/62d05db3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/62d05db3

Branch: refs/heads/develop
Commit: 62d05db3ecb41b529c49e4582401b11da344e471
Parents: efa907d
Author: Fabio Utzig <ut...@utzig.org>
Authored: Wed Nov 23 16:28:06 2016 -0200
Committer: Fabio Utzig <ut...@utzig.org>
Committed: Wed Nov 23 16:28:06 2016 -0200

----------------------------------------------------------------------
 apps/fat2native/src/main.c |  5 +++--
 fs/fatfs/src/mynewt_glue.c | 10 +++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/62d05db3/apps/fat2native/src/main.c
----------------------------------------------------------------------
diff --git a/apps/fat2native/src/main.c b/apps/fat2native/src/main.c
index a40af5e..00e281b 100644
--- a/apps/fat2native/src/main.c
+++ b/apps/fat2native/src/main.c
@@ -77,8 +77,9 @@ main(int argc, char **argv)
 
     sysinit();
 
-    //TODO
-    //log_register("fatfs-log", &nffs_log, &log_console_handler, NULL, LOG_SYSLEVEL);
+    /* TODO:
+     * log_register("fatfs-log", &nffs_log, &log_console_handler, NULL, LOG_SYSLEVEL);
+     */
 
     f_mount(&fs, "0:", 0);
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/62d05db3/fs/fatfs/src/mynewt_glue.c
----------------------------------------------------------------------
diff --git a/fs/fatfs/src/mynewt_glue.c b/fs/fatfs/src/mynewt_glue.c
index 84174a6..06db816 100644
--- a/fs/fatfs/src/mynewt_glue.c
+++ b/fs/fatfs/src/mynewt_glue.c
@@ -95,7 +95,7 @@ int fatfs_to_vfs_error(FRESULT res)
         rc = FS_EINVAL;
         break;
     case FR_WRITE_PROTECTED:       /* (10) The physical drive is write protected */
-        // TODO
+        /* TODO: assign correct error */
         break;
     case FR_INVALID_DRIVE:         /* (11) The logical drive number is invalid */
         rc = FS_EHW;
@@ -107,19 +107,19 @@ int fatfs_to_vfs_error(FRESULT res)
         rc = FS_EUNINIT;
         break;
     case FR_MKFS_ABORTED:          /* (14) The f_mkfs() aborted due to any problem */
-        //TODO
+        /* TODO: assign correct error */
         break;
     case FR_TIMEOUT:               /* (15) Could not get a grant to access the volume within defined period */
-        //TODO
+        /* TODO: assign correct error */
         break;
     case FR_LOCKED:                /* (16) The operation is rejected according to the file sharing policy */
-        //TODO
+        /* TODO: assign correct error */
         break;
     case FR_NOT_ENOUGH_CORE:       /* (17) LFN working buffer could not be allocated */
         rc = FS_ENOMEM;
         break;
     case FR_TOO_MANY_OPEN_FILES:   /* (18) Number of open files > _FS_LOCK */
-        //TODO
+        /* TODO: assign correct error */
         break;
     case FR_INVALID_PARAMETER:     /* (19) Given parameter is invalid */
         rc = FS_EINVAL;