[libusb] minor formatting fixes.

This commit is contained in:
Solomon Peachy 2012-11-21 23:38:03 -05:00
parent 21014052dd
commit df272c6e6d
1 changed files with 7 additions and 7 deletions

View File

@ -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,