Lines Matching refs:pr_err
38 #define pr_err(args...) fprintf(stderr, ##args) macro
91 pr_err("devlink answers: %s\n", strerror(errno)); in _mnlg_socket_recv_run()
105 pr_err("Failed to call mnlg_socket_send\n"); in _mnlg_socket_sndrcv()
118 pr_err("Failed to call mnlg_socket_group_add\n"); in _mnlg_socket_group_add()
515 pr_err("Devlink identification (\"bus_name/dev_name\") expected\n"); in dl_argv_handle()
519 pr_err("Wrong devlink identification string format.\n"); in dl_argv_handle()
520 pr_err("Expected \"bus_name/dev_name\".\n"); in dl_argv_handle()
536 pr_err("Port identification \"%s\" is invalid\n", str); in __dl_argv_handle_port()
541 pr_err("Port index \"%s\" is not a number or not within range\n", in __dl_argv_handle_port()
547 pr_err("Port identification \"%s\" is invalid\n", str); in __dl_argv_handle_port()
562 pr_err("Netdevice \"%s\" not found\n", str); in __dl_argv_handle_port_ifname()
575 pr_err("Port identification (\"bus_name/dev_name/port_index\" or \"netdev ifname\") expected.\n"); in dl_argv_handle_port()
587 pr_err("Wrong port identification string format.\n"); in dl_argv_handle_port()
588 pr_err("Expected \"bus_name/dev_name/port_index\" or \"netdev_ifname\".\n"); in dl_argv_handle_port()
602 pr_err("One of following identifications expected:\n" in dl_argv_handle_both()
626 pr_err("Wrong port identification string format.\n"); in dl_argv_handle_both()
627 …pr_err("Expected \"bus_name/dev_name\" or \"bus_name/dev_name/port_index\" or \"netdev_ifname\".\n… in dl_argv_handle_both()
639 pr_err("Unsigned number argument expected\n"); in dl_argv_uint32_t()
645 pr_err("\"%s\" is not a number or not within range\n", str); in dl_argv_uint32_t()
657 pr_err("Unsigned number argument expected\n"); in dl_argv_uint16_t()
663 pr_err("\"%s\" is not a number or not within range\n", str); in dl_argv_uint16_t()
674 pr_err("String parameter expected\n"); in dl_argv_str()
690 pr_err("Unknown port type \"%s\"\n", typestr); in port_type_get()
703 pr_err("Unknown pool type \"%s\"\n", typestr); in pool_type_get()
717 pr_err("Unknown threshold type \"%s\"\n", typestr); in threshold_type_get()
731 pr_err("Unknown eswitch mode \"%s\"\n", typestr); in eswitch_mode_get()
749 pr_err("Unknown eswitch inline mode \"%s\"\n", typestr); in eswitch_inline_mode_get()
763 pr_err("Unknown counter_state \"%s\"\n", typestr); in dpipe_counters_enable_get()
776 pr_err("Unknown eswitch encap mode \"%s\"\n", typestr); in eswitch_encap_mode_get()
950 pr_err("Unknown option \"%s\"\n", dl_argv(dl)); in dl_argv_parse()
963 pr_err("Port type option expected.\n"); in dl_argv_parse()
969 pr_err("Port split count option expected.\n"); in dl_argv_parse()
974 pr_err("Pool index option expected.\n"); in dl_argv_parse()
979 pr_err("Pool size option expected.\n"); in dl_argv_parse()
984 pr_err("Pool type option expected.\n"); in dl_argv_parse()
989 pr_err("Pool threshold type option expected.\n"); in dl_argv_parse()
994 pr_err("Threshold option expected.\n"); in dl_argv_parse()
999 pr_err("TC index option expected.\n"); in dl_argv_parse()
1005 pr_err("E-Switch mode option expected.\n"); in dl_argv_parse()
1011 pr_err("E-Switch inline-mode option expected.\n"); in dl_argv_parse()
1017 pr_err("Dpipe table name expected\n"); in dl_argv_parse()
1023 pr_err("Dpipe table counter state expected\n"); in dl_argv_parse()
1029 pr_err("E-Switch encapsulation option expected.\n"); in dl_argv_parse()
1144 pr_err("Usage: devlink dev show [ DEV ]\n"); in cmd_dev_help()
1145 pr_err(" devlink dev eswitch set DEV [ mode { legacy | switchdev } ]\n"); in cmd_dev_help()
1146 pr_err(" [ inline-mode { none | link | network | transport } ]\n"); in cmd_dev_help()
1147 pr_err(" [ encap { disable | enable } ]\n"); in cmd_dev_help()
1148 pr_err(" devlink dev eswitch show DEV\n"); in cmd_dev_help()
1529 pr_err("Need to set at least one option\n"); in cmd_dev_eswitch_set()
1548 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_dev_eswitch()
1601 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_dev()
1607 pr_err("Usage: devlink port show [ DEV/PORT_INDEX ]\n"); in cmd_port_help()
1608 pr_err(" devlink port set DEV/PORT_INDEX [ type { eth | ib | auto} ]\n"); in cmd_port_help()
1609 pr_err(" devlink port split DEV/PORT_INDEX count COUNT\n"); in cmd_port_help()
1610 pr_err(" devlink port unsplit DEV/PORT_INDEX\n"); in cmd_port_help()
1755 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_port()
1761 pr_err("Usage: devlink sb show [ DEV [ sb SB_INDEX ] ]\n"); in cmd_sb_help()
1762 pr_err(" devlink sb pool show [ DEV [ sb SB_INDEX ] pool POOL_INDEX ]\n"); in cmd_sb_help()
1763 pr_err(" devlink sb pool set DEV [ sb SB_INDEX ] pool POOL_INDEX\n"); in cmd_sb_help()
1764 pr_err(" size POOL_SIZE thtype { static | dynamic }\n"); in cmd_sb_help()
1765 pr_err(" devlink sb port pool show [ DEV/PORT_INDEX [ sb SB_INDEX ]\n"); in cmd_sb_help()
1766 pr_err(" pool POOL_INDEX ]\n"); in cmd_sb_help()
1767 pr_err(" devlink sb port pool set DEV/PORT_INDEX [ sb SB_INDEX ]\n"); in cmd_sb_help()
1768 pr_err(" pool POOL_INDEX th THRESHOLD\n"); in cmd_sb_help()
1769 pr_err(" devlink sb tc bind show [ DEV/PORT_INDEX [ sb SB_INDEX ] tc TC_INDEX\n"); in cmd_sb_help()
1770 pr_err(" type { ingress | egress } ]\n"); in cmd_sb_help()
1771 pr_err(" devlink sb tc bind set DEV/PORT_INDEX [ sb SB_INDEX ] tc TC_INDEX\n"); in cmd_sb_help()
1772 pr_err(" type { ingress | egress } pool POOL_INDEX\n"); in cmd_sb_help()
1773 pr_err(" th THRESHOLD\n"); in cmd_sb_help()
1774 pr_err(" devlink sb occupancy show { DEV | DEV/PORT_INDEX } [ sb SB_INDEX ]\n"); in cmd_sb_help()
1775 pr_err(" devlink sb occupancy snapshot DEV [ sb SB_INDEX ]\n"); in cmd_sb_help()
1776 pr_err(" devlink sb occupancy clearmax DEV [ sb SB_INDEX ]\n"); in cmd_sb_help()
1941 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_sb_pool()
2026 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_sb_port_pool()
2039 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_sb_port()
2129 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_sb_tc_bind()
2142 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_sb_tc()
2501 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_sb_occ()
2527 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_sb()
2631 pr_err("Unknown object \"%s\"\n", cur_obj); in cmd_mon_show()
2646 pr_err("Usage: devlink monitor [ all | OBJECT-LIST ]\n" in cmd_mon_help()
2659 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_mon()
3044 pr_err("error get headers %s\n", strerror(ctx->err)); in cmd_dpipe_headers_show()
3054 pr_err("Usage: devlink dpipe headers show DEV\n"); in cmd_dpipe_header_help()
3066 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_dpipe_header()
3342 pr_err("error get headers %s\n", strerror(ctx->err)); in cmd_dpipe_table_show()
3739 pr_err("error get headers %s\n", strerror(ctx->err)); in cmd_dpipe_table_dump()
3758 pr_err("Usage: devlink dpipe table [ OBJECT-LIST ]\n" in cmd_dpipe_table_help()
3777 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_dpipe_table()
3783 pr_err("Usage: devlink dpipe [ OBJECT-LIST ]\n" in cmd_dpipe_help()
3799 pr_err("Command \"%s\" not found\n", dl_argv(dl)); in cmd_dpipe()
3805 pr_err("Usage: devlink [ OPTIONS ] OBJECT { COMMAND | help }\n" in help()
3835 pr_err("Object \"%s\" not found\n", dl_argv(dl)); in dl_cmd()
3845 pr_err("Failed to connect to devlink Netlink\n"); in dl_init()
3851 pr_err("Failed to create index map\n"); in dl_init()
3857 pr_err("Failed to create JSON writer\n"); in dl_init()
3954 pr_err("Failed to allocate memory for devlink\n"); in main()
3985 pr_err("Unknown option.\n"); in main()