[Asterisk-code-review] res parking: Update patch with extra format conversion not p... (asterisk[15])
Karl Brose
asteriskteam at digium.com
Sat Aug 18 15:26:31 CDT 2018
Karl Brose has uploaded this change for review. ( https://gerrit.asterisk.org/9964
Change subject: res_parking: Update patch with extra format conversion not previously compiled
......................................................................
res_parking: Update patch with extra format conversion not previously compiled
Change-Id: I01e597757a15b5e3e0a90eb14b2e53d69677b640
---
M res/parking/parking_tests.c
1 file changed, 5 insertions(+), 5 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/64/9964/1
diff --git a/res/parking/parking_tests.c b/res/parking/parking_tests.c
index 1e9b886..9623e56 100644
--- a/res/parking/parking_tests.c
+++ b/res/parking/parking_tests.c
@@ -301,7 +301,7 @@
static int parked_users_match(const struct parked_user *actual, const struct parked_user *expected, struct ast_test *test)
{
if (expected->parking_space != actual->parking_space) {
- ast_test_status_update(test, "parking_space expected: %d - got: %d\n", expected->parking_space, actual->parking_space);
+ ast_test_status_update(test, "parking_space expected: "AST_PARKINGSPACE_FORMAT" - got: "AST_PARKINGSPACE_FORMAT"\n", expected->parking_space, actual->parking_space);
return 0;
}
@@ -326,12 +326,12 @@
static int parking_lot_cfgs_match(const struct parking_lot_cfg *actual, const struct parking_lot_cfg *expected, struct ast_test *test)
{
if (expected->parking_start != actual->parking_start) {
- ast_test_status_update(test, "parking_start expected: %d - got: %d\n", expected->parking_start, actual->parking_start);
+ ast_test_status_update(test, "parking_start expected: "AST_PARKINGSPACE_FORMAT" - got: "AST_PARKINGSPACE_FORMAT"\n", expected->parking_start, actual->parking_start);
return 0;
}
if (expected->parking_stop != actual->parking_stop) {
- ast_test_status_update(test, "parking_stop expected: %d - got: %d\n", expected->parking_stop, actual->parking_stop);
+ ast_test_status_update(test, "parking_stop expected: "AST_PARKINGSPACE_FORMAT" - got: "AST_PARKINGSPACE_FORMAT"\n", expected->parking_stop, actual->parking_stop);
return 0;
}
@@ -472,7 +472,7 @@
{
struct ast_exten *check;
struct pbx_find_info find_info = { .stacklen = 0 }; /* the rest is reset in pbx_find_extension */
- int extens;
+ ast_parkingspace_int extens;
char search_buffer[4];
/* Check the parking extensions */
@@ -495,7 +495,7 @@
/* Check the parking space extensions 701-703 */
for (extens = 701; extens <= 703; extens++) {
- sprintf(search_buffer, "%d", extens);
+ sprintf(search_buffer, AST_PARKINGSPACE_FORMAT, extens);
find_info.stacklen = 0; /* reset for pbx_find_extension */
check = pbx_find_extension(NULL, NULL, &find_info, "unit_test_res_parking_create_lot_con", search_buffer, 1, NULL, NULL, E_MATCH);
--
To view, visit https://gerrit.asterisk.org/9964
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I01e597757a15b5e3e0a90eb14b2e53d69677b640
Gerrit-Change-Number: 9964
Gerrit-PatchSet: 1
Gerrit-Owner: Karl Brose <karlbrose at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180818/937f5b13/attachment-0001.html>
More information about the asterisk-code-review
mailing list