monitor: request-handler: Fix build error 54/280554/1 submit/tizen/20220901.025125
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 31 Aug 2022 13:48:39 +0000 (22:48 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 31 Aug 2022 13:48:39 +0000 (22:48 +0900)
Fix the following build error by using the proper output type
when printing the error log.

45s] /home/abuild/rpmbuild/BUILD/pass-2.0.0/src/monitor/request-handler.c:295:31: note: format string is defined here
[   45s]   295 |   _E("failed to set flag to %lx, client(%d) | res:name(%s)id(%d)\n",
[   45s]       |                             ~~^
[   45s]       |                               |
[   45s]       |                               long unsigned int
[   45s]       |                             %llx

Change-Id: I401b2b912ed71d40b8e4a0f06d42d6b9b01c4837
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/monitor/request-handler.c

index 7a5db8f73d237792ba248d980c4cdc8bb440c01c..5d30833339539eda78a9ab831bbb5f2daf611174 100644 (file)
@@ -292,7 +292,7 @@ static int handle_request_set_resource_flag(struct request_client *client, char
 
        ret = set_resource_flag(res, flag_mask);
        if (ret < 0) {
-               _E("failed to set flag to %lx, client(%d) | res:name(%s)id(%d)\n",
+               _E("failed to set flag to %"PRIu64", client(%d) | res:name(%s)id(%d)\n",
                                        flag_mask, client->socket_fd,
                                        get_resource_name(res), resource_id);
                return ret;