From 9e5d57f492d67d411c97fb17c6c5664b2ef9720f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 29 Apr 2020 09:38:05 -0600 Subject: [PATCH] wireless/bluetooth/btsak/btsak_security.c: Fix newline character Inspired by Abdelatif's find, here are other cases where /n was used when \n ws intended --- wireless/bluetooth/btsak/btsak_security.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wireless/bluetooth/btsak/btsak_security.c b/wireless/bluetooth/btsak/btsak_security.c index d88b082ad..cf04a99d8 100644 --- a/wireless/bluetooth/btsak/btsak_security.c +++ b/wireless/bluetooth/btsak/btsak_security.c @@ -132,7 +132,7 @@ void btsak_cmd_security(FAR struct btsak_s *btsak, int argc, FAR char *argv[]) if (argc < 2) { - fprintf(stderr, "ERROR: Missing required arguments/n"); + fprintf(stderr, "ERROR: Missing required arguments\n"); btsak_security_showusage(btsak->progname, argv[0], EXIT_FAILURE); } @@ -145,7 +145,7 @@ void btsak_cmd_security(FAR struct btsak_s *btsak, int argc, FAR char *argv[]) if (argc < 4) { - fprintf(stderr, "ERROR: Missing required arguments/n"); + fprintf(stderr, "ERROR: Missing required arguments\n"); btsak_security_showusage(btsak->progname, argv[0], EXIT_FAILURE); } @@ -157,7 +157,7 @@ void btsak_cmd_security(FAR struct btsak_s *btsak, int argc, FAR char *argv[]) ret = btsak_str2addr(argv[1], btreq.btr_secaddr.val); if (ret < 0) { - fprintf(stderr, "ERROR: Invalid address string: %s/n", argv[1]); + fprintf(stderr, "ERROR: Invalid address string: %s\n", argv[1]); btsak_security_showusage(btsak->progname, argv[0], EXIT_FAILURE); } @@ -166,7 +166,7 @@ void btsak_cmd_security(FAR struct btsak_s *btsak, int argc, FAR char *argv[]) ret = btsak_str2addrtype(argv[2], &btreq.btr_secaddr.type); if (ret < 0) { - fprintf(stderr, "ERROR: Invalid address type: %s/n", argv[2]); + fprintf(stderr, "ERROR: Invalid address type: %s\n", argv[2]); btsak_security_showusage(btsak->progname, argv[0], EXIT_FAILURE); }