You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/07/15 12:26:17 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #6621: mmcsd: Remove the not really used capacity field

pkarashchenko commented on code in PR #6621:
URL: https://github.com/apache/incubator-nuttx/pull/6621#discussion_r922115517


##########
drivers/mmcsd/mmcsd_sdio.c:
##########
@@ -3377,8 +3359,8 @@ static int mmcsd_probe(FAR struct mmcsd_state_s *priv)
             {
               /* Yes...  */
 
-              finfo("Capacity: %lu Kbytes\n",
-                    (unsigned long)(priv->capacity / 1024));
+              finfo("Capacity: %lu blocks\n",
+                    (unsigned long)priv->nblocks);

Review Comment:
   ```suggestion
                 finfo("Capacity: %lu blocks\n", (unsigned long)priv->nblocks);
   ```



-- 
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@nuttx.apache.org

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