diff --git a/cql3/statements/create_keyspace_statement.hh b/cql3/statements/create_keyspace_statement.hh index 5dcc158c10..42fe8d4c3e 100644 --- a/cql3/statements/create_keyspace_statement.hh +++ b/cql3/statements/create_keyspace_statement.hh @@ -106,7 +106,7 @@ public: throw exceptions::invalid_request_exception(sprint("\"%s\" is not a valid keyspace name", _name.c_str())); } if (name.length() > schema::NAME_LENGTH) { - throw exceptions::invalid_request_exception(sprint("Keyspace names shouldn't be more than %" PRId32 " characters long (got \"%s\")", schema::NAME_LENGTH, _name.c_str())); + throw exceptions::invalid_request_exception(sprint("Keyspace names shouldn't be more than %d characters long (got \"%s\")", schema::NAME_LENGTH, _name.c_str())); } _attrs->validate(); diff --git a/cql3/statements/create_table_statement.cc b/cql3/statements/create_table_statement.cc index 3dcbeb915c..dc8e848461 100644 --- a/cql3/statements/create_table_statement.cc +++ b/cql3/statements/create_table_statement.cc @@ -170,7 +170,7 @@ create_table_statement::raw_statement::raw_statement(::shared_ptr name, throw exceptions::invalid_request_exception(sprint("\"%s\" is not a valid table name (must be alphanumeric character only: [0-9A-Za-z]+)", cf_name.c_str())); } if (cf_name.size() > size_t(schema::NAME_LENGTH)) { - throw exceptions::invalid_request_exception(sprint("Table names shouldn't be more than %" PRId32 " characters long (got \"%s\")", schema::NAME_LENGTH, cf_name.c_str())); + throw exceptions::invalid_request_exception(sprint("Table names shouldn't be more than %d characters long (got \"%s\")", schema::NAME_LENGTH, cf_name.c_str())); } for (auto&& entry : _defined_names) {