[riot-notifications] [RIOT-OS/RIOT] tests/mtd_raw: add simple test for MTD (#15362)

Bas Stottelaar notifications at github.com
Tue Nov 3 22:38:58 CET 2020


@basilfx commented on this pull request.



> +    }
+
+    int res = mtd_erase_sector(dev, sector, count);
+
+    if (res) {
+        printf("error: %i\n", res);
+    }
+
+    return res;
+}
+
+static void _print_info(mtd_dev_t *dev)
+{
+    printf("sectors: %"PRIu32"\n", dev->sector_count);
+    printf("pages per sector: %"PRIu32"\n", dev->pages_per_sector);
+    printf("page_size: %"PRIu32"\n", dev->page_size);

The others are without an underscore as well.

```suggestion
    printf("page size: %"PRIu32"\n", dev->page_size);
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15362#pullrequestreview-522893046
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201103/b9ebfb3e/attachment.htm>


More information about the notifications mailing list