Lines Matching defs:model
141 PDBG( bjnp_dbg( LOG_DEBUG3, "lookup_scanner: Checking for %s in %s\n", makemodel, cfg->model));
142 if ((match = strcasestr (makemodel, cfg->model)) != NULL)
148 if ((match[strlen(cfg->model)] == ' ') ||
149 (match[strlen(cfg->model)] == '\0') ||
150 (match[strlen(cfg->model)] == '-'))
152 PDBG( bjnp_dbg (LOG_DEBUG, "lookup_scanner: Scanner model found: Name %s(%s) matches %s\n", cfg->model, cfg->name, makemodel));
158 PDBG( bjnp_dbg (LOG_DEBUG, "lookup_scanner: Scanner model %s not found, giving up!\n", makemodel));
326 parse_IEEE1284_to_model (char *scanner_id, char *model)
329 * parses the IEEE1284 ID of the scanner to retrieve make and model
332 * 1 = found, model is set
341 model[0] = '\0';
346 /* MDL contains make and model */
351 strncpy (model, model_str, BJNP_MODEL_MAX);
352 model[BJNP_MODEL_MAX -1] = '\0';
737 get_scanner_id (const int dev_no, char *model)
741 * Sets model (make and model)
754 strcpy (model, "Unidentified scanner");
787 /* get make&model from IEEE1284 id */
789 if (model != NULL)
791 parse_IEEE1284_to_model (scanner_id, model);
792 PDBG (bjnp_dbg (LOG_INFO, "get_scanner_id: Scanner model = %s\n", model));
1902 PDBG (bjnp_dbg (LOG_CRIT, "add_scanner: ERROR - Cannot read scanner make & model: %s\n",
1912 PDBG (bjnp_dbg (LOG_CRIT, "add_scanner: Scanner %s is not supported, model is unknown! Please report upstream\n", makemodel));