You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2019/10/21 21:17:33 UTC

[mynewt-core] branch master updated: console: Fix typo

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 8d92e14  console: Fix typo
8d92e14 is described below

commit 8d92e140ba641d86e659d7a8181a17f68ee2aa68
Author: Naveen Kaje <na...@juul.com>
AuthorDate: Mon Oct 21 15:54:20 2019 -0500

    console: Fix typo
    
    Fix typo that led to the following error:
    
    ```
    repos/apache-mynewt-core/sys/console/minimal/src/console.c:135:19:
    error: 'promot' undeclared (first use in this function); did you mean 'prompt'?
         console_write(promot, strlen(prompt));
    ```
    
    Signed-off-by: Naveen Kaje <na...@juul.com>
---
 sys/console/minimal/src/console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/console/minimal/src/console.c b/sys/console/minimal/src/console.c
index 16bca59..d44f447 100644
--- a/sys/console/minimal/src/console.c
+++ b/sys/console/minimal/src/console.c
@@ -132,7 +132,7 @@ console_out(int c)
 void
 console_prompt_set(const char *prompt, const char *line)
 {
-    console_write(promot, strlen(prompt));
+    console_write(prompt, strlen(prompt));
     if (line) {
         console_write(line, strlen(line));
     }