[libusb] minor formatting fixes.

This commit is contained in:
Solomon Peachy 2012-11-21 23:38:03 -05:00
parent 21014052dd
commit df272c6e6d

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,