From d22b4ec539edc425b9f01d40e133a097b2e3b7f3 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Wed, 29 Sep 2021 13:47:48 +0200 Subject: [PATCH] espxx_rng.c: Add "/" at the beginning of paths for consistency. Signed-off-by: Abdelatif Guettouche --- arch/risc-v/src/esp32c3/esp32c3_rng.c | 2 +- arch/xtensa/src/esp32/esp32_rng.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/risc-v/src/esp32c3/esp32c3_rng.c b/arch/risc-v/src/esp32c3/esp32c3_rng.c index 7a3d01c689..b38bfd2333 100644 --- a/arch/risc-v/src/esp32c3/esp32c3_rng.c +++ b/arch/risc-v/src/esp32c3/esp32c3_rng.c @@ -222,7 +222,7 @@ void devurandom_register(void) #ifndef CONFIG_DEV_RANDOM esp32c3_rng_initialize(); #endif - register_driver("dev/urandom", &g_rngops, 0444, NULL); + register_driver("/dev/urandom", &g_rngops, 0444, NULL); } #endif diff --git a/arch/xtensa/src/esp32/esp32_rng.c b/arch/xtensa/src/esp32/esp32_rng.c index af968c4b95..07ec30c247 100644 --- a/arch/xtensa/src/esp32/esp32_rng.c +++ b/arch/xtensa/src/esp32/esp32_rng.c @@ -222,7 +222,7 @@ void devurandom_register(void) #ifndef CONFIG_DEV_RANDOM esp32_rng_initialize(); #endif - register_driver("dev/urandom", &g_rngops, 0444, NULL); + register_driver("/dev/urandom", &g_rngops, 0444, NULL); } #endif