From: Todor Tomov Date: Tue, 28 Sep 2010 11:59:50 +0000 (+0300) Subject: main.c: Fix crop rectangle printing format X-Git-Url: https://git.ideasonboard.org/media-ctl.git/commitdiff_plain/68a9a12fcee22c41f576f1a489791786982cf27b?hp=0e61c58c9f73dedbde3d35cdca608038643c2547 main.c: Fix crop rectangle printing format Fix crop rectangle printing format after L,T/WxH to (L,T)/WxH change. Signed-off-by: Todor Tomov --- diff --git a/main.c b/main.c index 3ca1600..96b4573 100644 --- a/main.c +++ b/main.c @@ -334,7 +334,7 @@ static int set_crop(struct media_entity_pad *pad, struct v4l2_rect *crop) if (crop->left == -1 || crop->top == -1) return 0; - printf("Setting up crop rectangle %u,%u/%ux%u on pad %s/%u\n", + printf("Setting up crop rectangle (%u,%u)/%ux%u on pad %s/%u\n", crop->left, crop->top, crop->width, crop->height, pad->entity->info.name, pad->index); @@ -345,7 +345,7 @@ static int set_crop(struct media_entity_pad *pad, struct v4l2_rect *crop) return ret; } - printf("Crop rectangle set: %u,%u/%ux%u\n", + printf("Crop rectangle set: (%u,%u)/%ux%u\n", crop->left, crop->top, crop->width, crop->height); return 0;