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
This commit is contained in:
Gregory Nutt 2020-04-29 09:38:05 -06:00 committed by Abdelatif Guettouche
parent dcc620e6b8
commit 9e5d57f492

View File

@ -132,7 +132,7 @@ void btsak_cmd_security(FAR struct btsak_s *btsak, int argc, FAR char *argv[])
if (argc < 2) 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); 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) 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); 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); ret = btsak_str2addr(argv[1], btreq.btr_secaddr.val);
if (ret < 0) 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); 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); ret = btsak_str2addrtype(argv[2], &btreq.btr_secaddr.type);
if (ret < 0) 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); btsak_security_showusage(btsak->progname, argv[0], EXIT_FAILURE);
} }