[libusb] minor formatting fixes.
This commit is contained in:
parent
21014052dd
commit
df272c6e6d
|
@ -237,13 +237,13 @@ static int find_and_enumerate(struct libusb_context *ctx,
|
|||
char buf[128]; // XXX ugly..
|
||||
i = 0;
|
||||
while (*(product + i + strlen("Canon"))) {
|
||||
buf[i] = *(product + i + strlen("Canon "));
|
||||
if(buf[i] == ' ') {
|
||||
buf[i++] = '%';
|
||||
buf[i++] = '2';
|
||||
buf[i] = '0';
|
||||
}
|
||||
i++;
|
||||
buf[i] = *(product + i + strlen("Canon "));
|
||||
if(buf[i] == ' ') {
|
||||
buf[i++] = '%';
|
||||
buf[i++] = '2';
|
||||
buf[i] = '0';
|
||||
}
|
||||
i++;
|
||||
}
|
||||
fprintf(stdout, "direct %sCanon/%s?serial=%s \"%s\" \"%s\" \"MFG:Canon;CMD:SelphyRaster;CLS:PRINTER;MDL:%s;DES:%s;SN:%s\" \"\"\n", URI_PREFIX,
|
||||
buf, serial, product, product,
|
||||
|
|
Loading…
Reference in a new issue