Lines Matching defs:devpath
75 const char *devpath, *myname = argv[0];;
100 fprintf(stderr, "%s: bad/missing parms: expected [--rewrite|--readback] <devpath> <lba>\n", myname);
103 devpath = argv[0];
106 fd = open(devpath, O_RDWR);
108 perror(devpath);
117 devpath, (unsigned long long)lba);
121 fprintf(stderr, "%s: %s\n", devpath, rc ? "error" : "success");
125 devpath, (unsigned long long)lba,
130 fprintf(stderr, "%s: %s\n", devpath, rc ? "error" : "success");
143 fprintf(stderr, "%s: writing LBA=%llu\n", devpath, (unsigned long long)lba);
146 fprintf(stderr, "%s: WRITE_LONG failed\n", devpath);
149 devpath, (unsigned long long)lba);
154 fprintf(stderr, "%s: readback failed\n", devpath);