projects
/
fw
/
stlink
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove the keypress to exit the app
[fw/stlink]
/
src
/
test_sg.c
diff --git
a/src/test_sg.c
b/src/test_sg.c
index 8b86061f4d8500d82b5e3f5d51eb2e397a2eb35c..9dcd3db0bbe0fb090967d50ce81bfeac16c29d26 100644
(file)
--- a/
src/test_sg.c
+++ b/
src/test_sg.c
@@
-8,7
+8,6
@@
#include <stdlib.h>
#include "stlink-common.h"
#include <stdlib.h>
#include "stlink-common.h"
-#if 0
int main(int argc, char *argv[]) {
// set scpi lib debug level: 0 for no debug info, 10 for lots
const int scsi_verbose = 2;
int main(int argc, char *argv[]) {
// set scpi lib debug level: 0 for no debug info, 10 for lots
const int scsi_verbose = 2;
@@
-35,10
+34,10
@@
int main(int argc, char *argv[]) {
}
fputs("*** stlink access test ***\n", stderr);
}
fputs("*** stlink access test ***\n", stderr);
-
DD(sl
, "Using sg_lib %s : scsi_pt %s\n", sg_lib_version(),
+
fprintf(stderr
, "Using sg_lib %s : scsi_pt %s\n", sg_lib_version(),
scsi_pt_version());
scsi_pt_version());
- st
ruct stlink *sl = stlink_force
_open(dev_name, scsi_verbose);
+ st
link_t *sl = stlink_quirk
_open(dev_name, scsi_verbose);
if (sl == NULL)
return EXIT_FAILURE;
if (sl == NULL)
return EXIT_FAILURE;
@@
-209,5
+208,4
@@
int main(int argc, char *argv[]) {
//fflush(stderr); fflush(stdout);
return EXIT_SUCCESS;
//fflush(stderr); fflush(stdout);
return EXIT_SUCCESS;
-}
-#endif
\ No newline at end of file
+}
\ No newline at end of file